3 ms·
WYSIWYG is kinda difficult for developers to control the allowed HTML part as it can generate a lot of gibberish and null characters. The same goes with content
by praveenscience 8y ago
WYSIWYG is kinda difficult for developers to control the allowed HTML part as it can generate a lot of gibberish and null characters. The same goes with contenteditable too. The good thing is, if you have Markdown, you can export it to HTML, text, doc, PDF, or any other format.
- underwater 8y agoDraft.js doesn't use the native browser content editable behaviour. It ensures that only valid markup can be generated: all text exists in a single block level element (p, h1, h2, li, blockquote) and then inline text can have an number of a developer-defined formatting options applied (emphasis, bold, links). It doesn't have the compatibility problems and ambiguity that markdown suffers from.