It returns whether the editor is in Preview Mode.
Return:
| Type | Description |
|---|---|
| Boolean | True if editor is in Preview Mode, false if not in Preview Mode |
Example:
if(editor.isPreviewMode()) {
editor.setMode('edit');
}
It returns whether the editor is in Preview Mode.
Return:
| Type | Description |
|---|---|
| Boolean | True if editor is in Preview Mode, false if not in Preview Mode |
if(editor.isPreviewMode()) {
editor.setMode('edit');
}