Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copy the rendered element problem #99

Open
andrescellini opened this issue Oct 22, 2020 · 0 comments
Open

copy the rendered element problem #99

andrescellini opened this issue Oct 22, 2020 · 0 comments

Comments

@andrescellini
Copy link

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant