Open thibaudcolas opened 7 years ago
If the goal is to store Hallo-compatible HTML-like data, I'm afraid draftjs_exporter comes too late as it only converts the (stored) JSON structure to HTML for display.
To store Hallo-compatible data in the database, it would have to happen in the editor but would that mean that upon saving, the DraftJS editor would convert it's internal state to HTML, and then parse this HTML back to its own internal state when updating?
Ah that's a good point, I completely forgot about the need to convert from HTML back to JSON 😅.
... so it's easier to integrate into existing sites.
Note that we likely won't get to 100% parity with Hallo – up to us to figure out how close this has to get.
Start defining how to do it, then think of whether to develop it ourselves or not. Two paths:
draftjs_exporter
do it, by configuring it differently.