#3064·BlockNote

Caret moves before text inserted with a custom React style

Author: ntietje1Created Sep 7, 2026Updated Sep 7, 2026

What’s broken?

After inserting text with a custom React style using editor.insertInlineContent(), typing inserts text before the inserted text instead of after it.

What did you expect to happen?

The caret should remain after the inserted text. Typing continued after inserting Styled text should produce Styled text continued, but instead produces continuedStyled text.

Steps to reproduce

Minimal reproduction: https://github.com/ntietje1/blocknote-react-mark-caret-repro

  1. Clone the reproduction and run vp install, then vp run dev.
  2. Click Insert styled text.
  3. Type continued without clicking the editor again.

BlockNote version

@blocknote/core and @blocknote/react 0.54.0.

Environment

Windows, Chromium, React 19.1.1.