BlockNote
BlockNote copied to clipboard
Select All followed by Delete/Cut not working when document starts with Code Block
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
- Go to https://www.blocknotejs.org/examples/theming/code-block
- Press ⌘+A to select all
- 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 💖