Status | ||||||
---|---|---|---|---|---|---|
|
에디터 본문에 변경여부를 초기화합니다. 이 함수 호출 후 isDirty() 함소를 사용하면 false가 반환됩니다Initializes the change or not in the editor body. Using the isDirty() function after calling this function will return false.
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
editor.clearDirty(); // dirty flag 초기화init if(!editor.isDirty()) { console.log('변경된 내용이 없습니다No changes have been made.'); }; |