Examples
editor.getReadOnly()
Returns a value indicating whether the editor's state is read-only on the client-side.
Syntax
editor.getReadOnly()
Return value
Type: boolean
True, if the editor is read only on the client side; otherwise, false.
Example:
var editor1 = new RichTextEditor("#div_editor1");
var toggleBtn=document.getElementById("btn_toggle");
toggleBtn.onclick=function(){
editor1.setReadOnly( ! editor1.getReadOnly() );
}