isEditMode

Returns whether the editor is in edit mode.

Returns

TypeDescription
Booleantrue if in edit mode, false otherwise

Example

if (editor.isEditMode()) {
  editor.insertHTML('Hello SynapEditor~');
}