readOnly() Since: 1.3.5
Gets if the editor is read only
Syntax
var isReadOnly = instance.readOnly();
Return
Type: boolean
Gets if the editor is read only
var isReadOnly = instance.readOnly();
Type: boolean
Sets if the editor is read only
instance.readOnly(val);
val
Type: Boolean
If to make the editor read-only.
Type: sceditor
Set the editor to read only:
var textarea = ...;
sceditor.instance(textarea).readOnly(true);
Make the editor editable:
var textarea = ...;
sceditor.instance(textarea).readOnly(false);