Skip to content

Custom Inline Styles Causing Cursor Bugs #1670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
screenspaceio opened this issue May 8, 2025 · 0 comments
Open

Custom Inline Styles Causing Cursor Bugs #1670

screenspaceio opened this issue May 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@screenspaceio
Copy link

screenspaceio commented May 8, 2025

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

@screenspaceio screenspaceio added the bug Something isn't working label May 8, 2025
@screenspaceio screenspaceio changed the title Custom and Default Inline Styles Causing Cursor Bugs Custom Inline Styles Causing Cursor Bugs May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant