Open kwfinken opened 2 years ago
I can confirm the issue. It's probably connected with the upstream behavior of the browser and can be reproduced on native [contenteditable]
. To actually delete the `div`, Backspace/Delete needs to be pressed twice.
However, the editor seems to have some custom handling of div
s as it correctly removes the following content:
<div>
<div>Test</div>
</div>
The issue appears when some div
s have classes. In that case, they are not removed.
Type of report
Bug
Provide detailed reproduction steps (if any)
Expected result
Because it was select all (ctrl-a) delete should remove every bit of code. Meaning source code should be empty.
Actual result
Other details
This only seems to happen when it is a div inside a div and both div's have assigned classes.
This causes unexpected outcomes for users as when they enter additional text into the editor, they are (unbeknownst to them) now working inside a div instead of on a blank canvas.