Import contents created in Synap Editor as texts.
Parameters:
Name | Type | Attribute | Description |
---|---|---|---|
htmlcode | Boolean | default : false | When there is any emoji, convert it to HTML Character Code in � form. |
unicode | Boolean | default : false | When there is any emoji, convert it to Unicode in \u0000 form |
remove | Boolean | default : false | When there is any emoji, remove it from the text |
Return:
Type | Description |
---|---|
String | Text created in the Editor |
Example:
var textContent = editor.getTextContent(); if(textContent.trim() !== '') { // Check if the text contents in the Editor consists of blank characters only and import html only when there is none. html = editor.getPublishingHtml(); } // Emoji option editor.getTextContent({ emoji: 'htmlcode' });