isEmpty
에디터 내용이 비어 있는지 여부를 반환합니다.
반환값
| 타입 | 설명 |
|---|---|
| Boolean | 내용이 존재하면 true, 비어 있으면 false |
예시
var html;
if (!editor.isEmpty()) {
// only fetch HTML when there is content
html = editor.getPublishingHtml();
}
에디터 내용이 비어 있는지 여부를 반환합니다.
| 타입 | 설명 |
|---|---|
| Boolean | 내용이 존재하면 true, 비어 있으면 false |
var html;
if (!editor.isEmpty()) {
// only fetch HTML when there is content
html = editor.getPublishingHtml();
}