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.
Replies: 1 comment
-
As suspected, solution was as easy as restricting the document schema to the codeBlock:
|
Beta Was this translation helpful? Give feedback.
As suspected, solution was as easy as restricting the document schema to the codeBlock: