How can you call getHTML(); function on custom button click (not every time the editors content is updated) #782
Answered
by
hanspagel
izabayo7
asked this question in
Questions & Help
-
I need help |
Beta Was this translation helpful? Give feedback.
Answered by
hanspagel
Aug 7, 2020
Replies: 1 comment 1 reply
-
Sure! Hope that helps: https://codesandbox.io/s/vue-issue-template-hjm8q?file=/src/App.vue in the template: <button class="menubar__button" @click="getHTML">
<span>getHTML</span>
</button> add a method: methods: {
getHTML() {
alert(this.editor.getHTML());
}
}, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
izabayo7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure! Hope that helps:
https://codesandbox.io/s/vue-issue-template-hjm8q?file=/src/App.vue
in the template:
add a method: