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

Save empty content when text editor is fully cleared #570

Closed
spaenleh opened this issue Feb 22, 2023 · 0 comments · Fixed by #578
Closed

Save empty content when text editor is fully cleared #570

spaenleh opened this issue Feb 22, 2023 · 0 comments · Fixed by #578
Assignees
Labels
bug 🪲 Something isn't working v0.8.0

Comments

@spaenleh
Copy link
Member

spaenleh commented Feb 22, 2023

Problem:

When all the text from the quill editor is removed, the saved content of the document is not '' but <p><br></p>.

So when rendered it will occupy a non-null space.

Solutions:

  1. Strip the content before saving, to save an empty string instead of a breakline
  2. Save as is but check for "empty line content" when rendering the text
@spaenleh spaenleh added the bug 🪲 Something isn't working label Feb 22, 2023
@spaenleh spaenleh self-assigned this Feb 22, 2023
@spaenleh spaenleh linked a pull request Feb 28, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working v0.8.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant