-
-
Notifications
You must be signed in to change notification settings - Fork 628
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When syntax highlighting is enabled for code blocks, users can still change the language via the language selector dropdown, even when the editor's editable property is set to false.
Expected Behavior:
The language selector should be disabled or non-interactive when editable is false.
Actual Behavior:
The language selector remains interactive and allows users to change the language selection.
To Reproduce
https://stackblitz.com/edit/github-rm5p7nzp?file=src%2FApp.tsx
- enable codeBlock syntax highlighting
<BlockNoteView editor={editor} editable={false} />
Misc
- Node version:
- Package manager:
- Browser:
- I'm a sponsor and would appreciate if you could look into this sooner than later π
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working