Check if any content was edited in Synap Editor.
Return:
| Type | Description |
|---|---|
| Boolean | true || false (Return true if there is any.) |
var html;
if(!editor.isEmpty()) { // Check if the text contents in the Editor is empty and import html only when there is none.
html = editor.getPublishingHtml();
} |