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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.
beautifybooleandefault : falseDetermine if HTML tag shall be beautified.
contentPaddingobjectdefault : 'none'Deyermine the value for document margins.

'document': Use the margins of the imported document.

'current': Use the margins of the current Editor.

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



  • No labels