Skip to content

Conversation

czgu
Copy link
Collaborator

@czgu czgu commented Jan 12, 2021

Previously, rich text's state is serialized into a draftjs object and stored as JSON in DB. However, this means we are vendor-locked into using draftjs. Additionally, the server-side could not parse the content at all which would make future work of collab editing impossible.

Now anything new that goes into the server will be in HTML which makes the server-side parsing much easier. We still keep the old draft js parsing code for compatibility reasons.

@czgu czgu requested a review from meowcodes January 12, 2021 19:14
@meowcodes meowcodes merged commit efaad44 into master Jan 13, 2021
@meowcodes meowcodes deleted the richtext branch January 13, 2021 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants