vue-clipboard2 icon indicating copy to clipboard operation
vue-clipboard2 copied to clipboard

copy the rendered element problem

Open andrescellini opened this issue 5 years ago • 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 .

andrescellini avatar Oct 22 '20 21:10 andrescellini