Page tree
Skip to end of metadata
Go to start of metadata

Import contents created in Synap Editor as texts.


Parameters:

Name

Type

Attribute

Description

htmlcode

Booleandefault : falseWhen there is any emoji, convert it to HTML Character Code in � form.

unicode

Booleandefault : falseWhen there is any emoji, convert it to Unicode in \u0000 form

remove

Booleandefault : falseWhen there is any emoji, remove it from the text


Return:

TypeDescription
StringText 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'
});




  • No labels