There are html tags left after user empty the editor
See original GitHub issueAfter user remove everything from the editor, there is <p><br></p>
left.
Should it be empty? Or you have some reasons for this?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Siteimprove - How to fix "Empty Headings"
Click your cursor into any suspicious spaces, and check the Paragraph Format button (top left of HTML editor) and Tag Selector area (bottom...
Read more >Empty paragraph tags - should I allow in HTML editor or not?
User agents should ignore empty P elements. I would suggest that when you users create blank lines you wrap their text in paragraphs....
Read more >Editor contains tags on initialisation and when content is empty
I am using Quill in an application that autosaves the contents of the editor on init and on change. I noticed that by...
Read more >Blank html is not just - Text editors - Moodle.org
Anyone know why "blank" html is not just <p></p>?... i.e. when you first edit an empty textbox in a page, quiz or whatever...
Read more >WebD2: Common HTML Tags - University of Washington
A few tags are called non-container tags, because they don't contain any content - they stand alone. Examples are images and line breaks....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So I just published 2.4.3 which includes a fix for this issue.
I’m going to leave this issue open for a week and to see if there are any other related issued experienced by anyone.
I’ve run into this issue as well. Turns out, it is an intentional behavior of the underlying Quill functionality.
It has been discussed at Quill issue 1235. The tl;dr is that some basic functionality of Quill assumes at least a block and
inline blot
in order to function properly. Most users have resigned to take it upon themselves to calculate whether or not the Quill form is empty themselves.I am hoping that a Quill-native solution is added in the future. Then perhaps @davidroyer could add a Vue hook for us 😉