ProKeys icon indicating copy to clipboard operation
ProKeys copied to clipboard

Swapping between textarea and rich text editor codifies html entities

Open GaurangTandon opened this issue 6 years ago • 3 comments

Characters like < or > get converted into &lt; and &gt;.

TODO: resolve this issue. Make sure it also does not occur while executing the snippet in rich text areas or textboxes.

GaurangTandon avatar Jan 03 '18 01:01 GaurangTandon

It should be noted that text like &amp; gets converted to & when swapping from textarea to rich text editor, which I don't think is an issue because that's the whole purpose of the swap: creating actual html out of html-like text.

GaurangTandon avatar Sep 12 '18 04:09 GaurangTandon

which I don't think is an issue because that's the whole purpose of the swap: creating actual html out of html-like text.

But on changing back to textarea from rte the textarea should have the html and not the plain text. What if someone swapped to rte to just have the preview of html?

ammarbinfaisal1 avatar Sep 12 '18 18:09 ammarbinfaisal1

Good point @ammarbinfaisal! I think this is part of a larger issue of ProKeys not having a Rich HTML preview, and the Rich text box doubling up as both as a rich text editor and a preview box. Moreover, the situation about swapping between the textarea and the rich text editor is a complete spaghetti code, something that I hope to fix in future releases... :'(

I'll have to see how to fix this issue, possibly provide a third Preview Rich Textarea tab? Not sure yet, open to suggestions!

GaurangTandon avatar Sep 12 '18 19:09 GaurangTandon