Open
Description
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
- Visit the custom inline style docs page: https://www.blocknotejs.org/docs/custom-schemas/custom-styles
- Set your cursor within the "Comic Sans MS" text, say just after the word "Sans"
- Click "Enter" -- observe new lines being created, but the cursor remains in the original block at the beginning of the line.
- 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