Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Synap Editor에서 편집된 내용을 HTML 형식으로 가져옵니다Export the contents edited in Synap Editor in the HTML form.


Parameters:

NameTypeAttributeDescription
bWrapbooleandefault : false편집한 내용을 <html> tag로 둘러쌀지 결정합니다Determine if the edited contents shall be wrapped with <html> tag.
emojiEscapesbooleandefault : falseemoji 문자를 Determine if emoji characters shall be converted in HTML Entity 형태로 변경할지 결정합니다form.
beautifybooleandefault : falseHTML tag를 보기좋게 표시(beautify)할지 결정합니다Determine 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
String사이냅에디터에서 편집한 HTML 콘텐츠HTML contents edited in Synap Editor



Example:

Code Block
languagejs
themeEmacs
var html = editor.getPublishingHtml();


현재 편집기의 여백을 포함해서 HTML 가져오기Export HTML while including the margins of the current Editor

Code Block
languagejs
themeEmacs
var html = editor.getPublishingHtml({'contentPadding':'current'});

...