-
Notifications
You must be signed in to change notification settings - Fork 2.6k
convertFromHTML doesn't preserve <br>s inside <div>s #578
Comments
This was discussed a bit in #231:
|
I have the exact issue; what trick did you use to fix it without using another module? The sql entry is fine and were able to print fine. Its just when i come back to the editor the paragraphs are crammed and we cannot tell if a paragraph was put in. |
To do the cleanup removing the users input which is not right |
I think this is not good default behavior and should be changed. The current behavior also does the align with most other RTE's. |
This is awful default behavior. |
Let's say I have some text in the editor:
In the editor, when creating this text, I end up with 6 blocks, with the 2nd, 4th, and 5th having empty text.
The HTML I generate from this text looks like this (which is very similar to the HTML outputted during editing):
If I use
convertFromHTML()
on this HTML, I would expect to get 6 content blocks back. Instead, I only get 3, and all of the empty lines get collapsed. So after I load the 3 blocks, the text in the editor ends up like this:The text was updated successfully, but these errors were encountered: