News for hackers. Stuff that matters.
Re:Ask HN: How to Move Away from DraftJS by gitgud on Sunday March 28, 2021 @10:28PM (#26617093)
Try https://quilljs.com/ It's open source, sleek and has a really simple plugin system, which makes modifying the editor, very easy.

> and what’s a good intermediary format to store rich text soo we can switch editors for the future. Raw HTML might take too much space possibly.

Unfortunately, HTML is probably the best solution, as it's portable to almost any WSIWYG editor and self contained. The space issue usually comes up with storing images, (shameless plug) that's why I made a quill plugin to shrink images.

https://github.com/benwinding/quill-image-compress

Re:Ask HN: How to Move Away from DraftJS by catchmeifyoucan on Tuesday March 30, 2021 @05:17AM (#26632554)
It's kind of cool that this data is saved as Ops. Seems like a smart way to do it! I think sticking with HTML makes sense as well, or even the Quill Ops system.

I guess we'll have to write a converter from Draft to HTML and HTML to Quill as our newer formats.