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

Added humanReadable boolean to editorStateToJSON #333

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

mwilkinson22
Copy link
Contributor

editorStateToJSON always returns stringified JSON with indents and newlines. If we want to "minify" this before storing in the database, we need to do something like JSON.stringify(JSON.parse(editorStateToJSON(editorState)))

I've added a second parameter to editorStateToJSON, to optionally turn off newlines and indents and allow us to skip this step. It defaults to true, so shouldn't cause any breaking changes

@stale
Copy link

stale bot commented Feb 18, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 18, 2021
@stale stale bot closed this Feb 25, 2021
@marcelometal marcelometal reopened this Dec 21, 2021
@vitorhugomattos vitorhugomattos force-pushed the readableBool branch 2 times, most recently from ec3aaae to b4dd12f Compare October 4, 2022 19:40
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.

3 participants