Skip to content

Clicking DEL on empty line should remove block & lift blocks below it #2453

@sailor95

Description

@sailor95

What’s broken?

When there's multiple Blocks, pressing DEL key on an empty line/block should lift the adjacent block.

What did you expect to happen?

Image

Steps to reproduce

  1. On official site demo page editor (macOS, Chrome)
  2. Create two blocks, first block empty, second block any content
  3. Focus cursor on first block and hit DEL key

BlockNote version

latest

Environment

Chrome, macOS

Additional context

No response

Contribution

  • I'd be interested in contributing a fix for this issue

Sponsor

  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect or unexpected behavior in existing functionality.needs-triageIssue has not yet been reviewed or classified by maintainers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions