woofmark icon indicating copy to clipboard operation
woofmark copied to clipboard

Less-than-carets are removed when event is triggered

Open oyvinev opened this issue 8 years ago • 1 comments

The less-than caret followed by text is removed when you e.g. set some text to bold in wysiwyg mode.

E.g: in the demo, write "<e", and change some other text to bold.

Is there any possibility to preserve these when typed in?

oyvinev avatar Dec 16 '16 08:12 oyvinev

This issue comes from HTML special characters not being escaped properly in the WYSIWYG editor. Getting the textContent or innerText from the browser will give the unescaped version of the text. I've fixed the issue over at BlinkUX/woofmark and I'll try and see if I can't clean up a PR to merge upstream.

LoveAndCoding avatar Jun 29 '17 22:06 LoveAndCoding