Inndy/vue-clipboard2

copy the rendered element problem

andrescellini opened this issue · 0 comments

Hello! , in docs it said

"You can use your Vue instance vm.$el to get DOM elements via the usual traversal methods, e.g.:
this.$el.children[1].children[2].textContent
This will allow you to access the rendered content of your components, rather than the components themselves."

In my case i have a wysiwyg component, and when i copied the element.textContent i got the html code, insted of the rendered text intented. Does someone have an example of this case working? i need the rendered text to paste it later in whatsapp with the line breaks .