BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

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

Open ysds opened this issue 1 month ago • 1 comments

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 💖

ysds avatar Dec 19 '25 08:12 ysds