Answer the question
In order to leave comments, you need to log in
How to make contenteditable not save tags?
Such a problem, I have a contenteditable div, and a button that adds a span.bold tag to the selected text, and through css I make it bold (that's exactly what I need), but the problem is that the div remembers that this text is bold, and if erase the text, then the tag is removed, and the new text already appears with the b tag, how to fix this?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question