Describe the bug
After deleting all text with backspace, empty blocks with formatting (bold/italic) remain in the model. When typing new text and pressing Enter, these empty formatted blocks reappear in the output.
Steps to reproduce
No response
Expected behavior
- After deleting all text, empty blocks should have formatting cleared
- New text should not inherit formatting from empty blocks
- Pressing Enter should not recreate empty formatted blocks
What is actually happening?
- User types text and applies formatting (bold/italic)
- User deletes all text using backspace
- Text area appears blank, but HTML still contains empty formatted tags like
- When user types new text, it appears without formatting (correct)
- When user presses Enter, old empty formatted blocks reappear in the HTML output
- These empty blocks cause unexpected behavior when creating new lines
Screenshots
No response
Any additional comments?
No response