Page tree

Versions Compared

Key

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

...

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

주의) isEdited() 함수는 빠른 편집여부 확인을 위해 undo stack을 이용해서 편집여부를 판단하고 있습니다. 실제 변경된 내용이 없는 경우("가"를 입려하고  Backspace를 "가"를 지운경우)에도 편집이 있었다고 판단 할 수 있습니다.

Example:

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

...