In a contenteditable div, when I type a word after a colored html tag, the typed word also gets colored like the tag by mistake. How to avoid it?
Please see the example below. It creates a contenteditable div with some colored HTML tags. When I try to write immediately after a colored tag, then the next word is colored too. The word also gets colored if I use…