isPreviewMode
Returns whether the editor is in preview mode.
Returns
| Type | Description |
|---|---|
| Boolean | true if in preview mode, false otherwise |
Example
if (editor.isPreviewMode()) {
editor.setMode('edit');
}
Returns whether the editor is in preview mode.
| Type | Description |
|---|---|
| Boolean | true if in preview mode, false otherwise |
if (editor.isPreviewMode()) {
editor.setMode('edit');
}