question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

There are html tags left after user empty the editor

See original GitHub issue

After 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:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
davidroyercommented, Apr 18, 2018

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.

2reactions
MellowCobracommented, Apr 3, 2018

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 😉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found