Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use HTML to store rich text content #373

Merged
merged 2 commits into from
Jan 13, 2021
Merged

Use HTML to store rich text content #373

merged 2 commits into from
Jan 13, 2021

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