Skip to content

Select All followed by Delete/Cut not working when document starts with Code Block #2309

@ysds

Description

@ysds

Describe the bug

When a document starts with a Code Block, pressing ⌘+A (Select All) followed by Delete or Cut (⌘+X) does not remove the content.
This issue does not occur when the Code Block is positioned elsewhere in the document (not at the start).

To Reproduce

  1. Go to https://www.blocknotejs.org/examples/theming/code-block
  2. Press ⌘+A to select all
  3. Press Delete or ⌘+X

Misc

  • Node version:
  • Package manager:
  • Browser: Chrome / macOS
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions