isDirty
2.11.0 버전부터 지원합니다.
에디터 본문이 변경되었는지 여부를 반환합니다.
반환값
| 타입 | 설명 |
|---|---|
| Boolean | 변경 사항이 있으면 true |
예시
if (editor.isDirty()) {
console.log('There are unsaved changes.');
}
2.11.0 버전부터 지원합니다.
에디터 본문이 변경되었는지 여부를 반환합니다.
| 타입 | 설명 |
|---|---|
| Boolean | 변경 사항이 있으면 true |
if (editor.isDirty()) {
console.log('There are unsaved changes.');
}