What's wrong with this piece of code? #1660
Unanswered
aspyropoulos
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 am trying to create a highlighted node that is not editable. When user selects a word and the function
toggleTest()
is used the html should look from:<p>random text</p>
to:
<p>random <span class="bg-red-700" contenteditable="false">text<span/></p>
The above does not work. However if I change it to a block by removing
inline: true
and :it works. The problem is that now it's a block while I want it to work as an inline element within
<p>
html tags.Is there any mistake that I don't see?
Beta Was this translation helpful? Give feedback.
All reactions