We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, if editor has no content, convertToHTML returns an empty <p></p>. How do I get it to return an empty string?
convertToHTML
<p></p>
Makes no sense to have a bunch of <p></p>s in the database.
Thoughts?
The text was updated successfully, but these errors were encountered:
Not sure if you already fixed this. But you can try this for solving it:
blockToHTML: (block: ContentBlock) => { if (block.type === 'unstyled') { return { start: '', end: '', }; } return undefined; },
Sorry, something went wrong.
But this way it won't preserve spaces when parsing back, i'm trying to solve that.
No branches or pull requests
Currently, if editor has no content,
convertToHTML
returns an empty<p></p>
. How do I get it to return an empty string?Makes no sense to have a bunch of
<p></p>
s in the database.Thoughts?
The text was updated successfully, but these errors were encountered: