BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Code Block not focused when creating using backticks

Open woutervroege opened this issue 9 months ago • 1 comments

What’s broken?

When creating a code block using back ticks and hitting , the editor inserts the code block but the mouse cursor is auto focused on the next block.

When I insert a code block using the slash menu the cursor position is correctly moved to the code block

What did you expect to happen?

On , I expect the mouse cursor to focus the newly created code block.

Steps to reproduce

  1. Open an editor
  2. Create a code by typing ``` +
  3. See that the mouse cursor has moved to the block after the code block instead of the code block itself.

BlockNote version

No response

Environment

Chrome 144 / 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 💖

woutervroege avatar Feb 09 '26 15:02 woutervroege

Hi, I'm working on this now for a class open-source assignment!

miadnguyen avatar Apr 05 '26 23:04 miadnguyen