Skip to content

Code Block not focused when creating using backticks #2444

@woutervroege

Description

@woutervroege

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 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect or unexpected behavior in existing functionality.bug:P2Medium: Noticeable but non-blocking issues.needs-effortIssue has been triaged but has not yet been sized.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions