Describe the bug
The editor formats the inserted HTML very strangely if it uses more than one <br> character in a row
For some reason, the editor leaves only one <br> character out of several in a row.
<div>
Header <br><br>
Line 1<br><br>
Line 2<br><br>
Line 3 <br><br><br>
Footer</div>
Return to editor mode.
Insert the cursor, for example, between Line 1 and Line 2
Press "Enter" key
Press the "Enter" key again
After point 5. the cursor will jump to the very beginning of the text to the line "Header"
After point 6. spaces between lines will be removed, but an empty line will be added at the very top of the text.
In "Code View" we will see this HTML:
<div><br>
</div>
<div>Header <br>
Line 1<br>
Line 2<br>
Line 3 <br>
Footer</div>
Expected behavior
After pressing the "Enter" key twice in a row, two empty lines should be added.
Screenshots
It should be like this:
But it turns out like this:
Desktop (please complete the following information):
Describe the bug The editor formats the inserted HTML very strangely if it uses more than one
<br>
character in a row For some reason, the editor leaves only one<br>
character out of several in a row.To Reproduce
After point 5. the cursor will jump to the very beginning of the text to the line "Header" After point 6. spaces between lines will be removed, but an empty line will be added at the very top of the text.
In "Code View" we will see this HTML:
Expected behavior After pressing the "Enter" key twice in a row, two empty lines should be added.
Screenshots It should be like this:![2](https://github.com/JiHong88/suneditor/assets/47285364/31ebae4c-addb-4c55-962d-9a8bbbd05f7c)
But it turns out like this:![1](https://github.com/JiHong88/suneditor/assets/47285364/fea742e7-b530-4d3c-8bfe-0296a22b926d)
Desktop (please complete the following information):