Closed vijayth2-cerebras closed 2 months ago
Even when readOnly mode is true, mobile keyboard appears on touch. I don't want to show the mobile keyboard when in readonly mode.
const state = EditorState.create({ doc: code, extensions: [ basicSetup, EditorView.lineWrapping, EditorState.readOnly.of(true), languageExtn() ] }) editorRef.current = new EditorView({ state, parent: document.getElementById(id)! })
All mobile devices
No response
Use EditorView.editable.
EditorView.editable
Thanks so much. It works great. If you can add it to the README, that will help.
Describe the issue
Even when readOnly mode is true, mobile keyboard appears on touch. I don't want to show the mobile keyboard when in readonly mode.
Browser and platform
All mobile devices
Reproduction link
No response