No onClick event handler on editor-content? #730
-
Why (does it seem to be?) impossible to set an click handler on the editor-content? Like so: Reason why I need this is that my content has clickable span's.
Some background: https://stackoverflow.com/questions/62321522/adding-functionality-javascript-to-a-simple-html-tag-in-vue-and-or-tiptap |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Oh, never mind. I should have put it on a div wrapper, like so: Please delete this discussion, if deemed not helpful for others. |
Beta Was this translation helpful? Give feedback.
Oh, never mind. I should have put it on a div wrapper, like so:
<div @click="handleClick"><editor-content class="editor__content" :editor="editor" /></div>
Please delete this discussion, if deemed not helpful for others.