Synap Editor에서 편집된 내용을 HTML 형식으로 가져옵니다Export the contents edited in Synap Editor in the HTML form.
Parameters:
Name | Type | Attribute | Description |
---|---|---|---|
bWrap | boolean | default : false | 편집한 내용을 <html> tag로 둘러쌀지 결정합니다Determine if the edited contents shall be wrapped with <html> tag. |
emojiEscapes | boolean | default : false | emoji 문자를 Determine if emoji characters shall be converted in HTML Entity 형태로 변경할지 결정합니다form. |
beautify | boolean | default : false | HTML tag를 보기좋게 표시(beautify)할지 결정합니다Determine if HTML tag shall be beautified. |
contentPadding | object | default : '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:
Type | Description |
---|---|
String사이냅에디터에서 | 편집한 HTML 콘텐츠HTML contents edited in Synap Editor |
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
var html = editor.getPublishingHtml(); |
현재 편집기의 여백을 포함해서 HTML 가져오기Export HTML while including the margins of the current Editor
Code Block | ||||
---|---|---|---|---|
| ||||
var html = editor.getPublishingHtml({'contentPadding':'current'}); |
...