S
S
saalaus2018-08-11 17:18:33
css
saalaus, 2018-08-11 17:18:33

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 question

Ask a Question

731 491 924 answers to any question