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.
> 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