Skip to content

Weird behaviour of cursor and focus with images #3088

Description

@virgile-dev

What’s broken?

Focus on image
Arrow up and the cursor goes above but not on a line if no line is actually above.
Or arrow down but nothing happens. It doesn't go to the empty line bellow.
To create the empty line I have to click below the image with my mouse

What did you expect to happen?

if no element above the image, with arrow up, focus should stay on image
With arrow down it should create an empty line for the cursor to move down and save a click

Steps to reproduce

Capture.video.du.2026-09-14.16-35-37.webm

BlockNote version

https://www.blocknotejs.org/demo#7ixm8

Environment

No response

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 💖

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

needs-triageIssue has not yet been reviewed or classified by maintainers.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions