Skip to content

[BUG]: Empty formatted blocks reappear after deleting all text and typing new content #230

@rohitrg96

Description

@rohitrg96

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions