Skip to content

Custom Inline Styles Causing Cursor Bugs #1670

Open
@screenspaceio

Description

@screenspaceio

When using custom inline styles in BlockNote, an issues arises that makes editing difficult:

  • Pressing Enter just before or inside styled text creates a new block as intended, but the cursor remains in the original block, making it difficult to continue editing smoothly.

These issues only appear when applying custom inline styles via styleSpecs — default styles like bold or textColor behave correctly.

To Reproduce

  1. Visit the custom inline style docs page: https://www.blocknotejs.org/docs/custom-schemas/custom-styles
  2. Set your cursor within the "Comic Sans MS" text, say just after the word "Sans"
  3. Click "Enter" -- observe new lines being created, but the cursor remains in the original block at the beginning of the line.
  4. Start typing and you'll see the new text appear in the original block, not the newly created block where expected.

Browser
Arc / Chrome / Safari

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions