-
Notifications
You must be signed in to change notification settings - Fork 245
Clean up bogus BR
elements
#75
Comments
I think this example is related, the following lines:
Become:
|
@hassankhan Can you elaborate? I don’t see this happening when I paste (from a plain text editor). |
I typed it in (don't know if that makes a difference?) on the demo page and that was the generated markup. Shouldn't the correct markup be:
|
@hassankhan The sample text you included has two new line characters in it — by this I’m assuming you’re sending the <p>Test line 1</p><p><br></p><p>Test line 2</p> Alternatively you can send the <p>Test line 1<br>Test line 2</p> Does this help? |
Ahh right, thanks, that was exactly what I was looking for. Sorry to clog up the issue, I read the title and thought it was related. |
Is there any progress update on this issue? We are finding the bogus
|
Browsers need to insert something inside of an empty element in order for the caret to be positioned there (AFAIK). You wouldn’t be able to place your caret inside of
<p></p>
because there’s no text node/element.This hasn’t been fixed because there were bigger fish to try, but could easily be done as a “formatter” (perhaps).
The text was updated successfully, but these errors were encountered: