Page tree

Versions Compared

Key

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

...

Synap Editor에서 편집된 내용이 있는지 여부를 판단합니다.


Return:Boolean :

TypeDescription
Boolean true || false (내용이 있을경우 true를 반환합니다.)



Example:

Code Block
languagejs
themeEmacs
var html;
if(!editor.isEmpty()) { // 에디터가 비어있을 경우를 판단하여 없을경우에만 html을 가져온다.
	html = editor.getPublishingHtml();
}

...