It would be great if we could disabled the Ace editor box with the disabled attribute, similar to what's available with a textarea:
<textarea rows="3" cols="25" disabled="disabled">
This textarea is grayed out and disabled for interaction.
</textarea>
The closest thing we already have in Ace is the "readonly" property (editor.setReadonly(true))
Thanks, that'll do.
FYI it is editor.setReadOnly(true)
Ace
editor edit?editor.setReadOnly(true);
https://stackoverflow.com/questions/24757506/how-to-disable-in-ace-editor-the-selection
not work for this situation?
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable
i can't wirte but can delete text after use setReadOnly(true).
Most helpful comment
FYI it is editor.setReadOnly(true)