Export the contents edited in Synap Editor in the HTML form.


Parameters:

NameTypeAttributeDescription
bWrapbooleandefault : falseDetermine if the edited contents shall be wrapped with <html> tag.
emojiEscapesbooleandefault : falseDetermine if emoji characters shall be converted in HTML Entity form.
contentPaddingobjectdefault : 'none'Deyermine the value for document margins.
'document': Use the margins of the imported document.
'none': Do not use the margins.


Return:

TypeDescription
StringHTML contents edited in Synap Editor



Example:

var html = editor.getPublishingHtml();


Export HTML while including the margins of the current Editor

var html = editor.getPublishingHtml({'contentPadding':'current'});