Export the contents edited in Synap Editor in the HTML form.
Parameters:
| Name | Type | Attribute | Description |
|---|---|---|---|
| bWrap | boolean | default : false | Determine if the edited contents shall be wrapped with <html> tag. |
| emojiEscapes | boolean | default : false | Determine if emoji characters shall be converted in HTML Entity form. |
| contentPadding | object | default : 'none' | Deyermine the value for document margins. 'document': Use the margins of the imported document. 'none': Do not use the margins. |
Return:
| Type | Description |
|---|---|
| String | HTML 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'});