How can I strictly enable CodeBlockLowlight? #5130
-
Hey! Does anyone know how I can configure the editor to only contain an unremovable CodeBlockLowlight node? In other words, I really only want to use the editor as a code editor, and not allow 1) the code block to be removed and 2) the ability to navigate outside of the code block (using arrow keys or double enter). Is this possible? Do I need to change the Document
Thanks so much! |
Beta Was this translation helpful? Give feedback.
Answered by
spencerjsmall
May 12, 2024
Replies: 1 comment
-
As suspected, solution was as easy as restricting the document schema to the codeBlock:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
spencerjsmall
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As suspected, solution was as easy as restricting the document schema to the codeBlock: