You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Code block language can be changed even when editable is false #2156
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.
Hm, while we are here. We should create a plugin which disables any edits to the document while editable is false (maybe unless some meta is present on the transaction)
Activity
nperez0111 commentedon Nov 5, 2025
Hm, while we are here. We should create a plugin which disables any edits to the document while editable is false (maybe unless some meta is present on the transaction)
fix: disable code block language selector when editor is not editable