RichTextEditor Demo
Home Pricing

## 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:

1. var editor1 = new RichTextEditor("#div_editor1");
2. var toggleBtn=document.getElementById("btn_toggle");
3. toggleBtn.onclick=function(){
4. editor1.setReadOnly( ! editor1.getReadOnly() );
5. }