codemirror-promql
codemirror-promql copied to clipboard
How to make the editor read only?
Is there a way to make the editor read only?
I can see the readOnly option in code mirror but not sure about how to use it using this library.
Yeah, just include this in your CodeMirror extensions, alongside the PromQL extension:
EditorView.editable.of(false)
Closing the issue here since it's not related to the extension directly, but hoping it solves your question!