Selecting a Highlight's text and removing mark when user starts typing #5436
Unanswered
navadev
asked this question in
Questions & Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using the Highlight extension to render highlighted text with
<mark>
. If the user clicks the mark's contents, we select the text. If the user starts typing, remove the mark.I wrote the following plugin, but I can't help but think that there's an easier way to accomplish this, or I'm doing something wrong (I am new to Tiptap). Any thoughts? I couldn't find anything relevant in the Selection API.
Beta Was this translation helpful? Give feedback.
All reactions