Status | |||||
---|---|---|---|---|---|
|
...
|
...
|
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.'); }; |