Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

에디터가 미리보기 모드인지 여부를 반환합니다It returns whether the editor is in Preview Mode.


Return:

TypeDescription
Boolean 에디터가 미리보기 모드이면 true, 미리보기 모드가 아니면 falseTrue if editor is in Preview Mode, false if not in Preview Mode



Example:

Code Block
languagejs
themeEmacs
if(editor.isPreviewMode()) {
	editor.setMode('edit');
}

...