Synap Editor에서 편집된 내용을 HTML 형식으로 가져옵니다.
Parameters:
Name | Type | Attribute | Description |
---|---|---|---|
bWrap | boolean | default : false | 편집한 내용을 <html> tag로 둘러쌀지 결정합니다. |
emojiEscapes | boolean | default : false | emoji 문자를 HTML Entity 형태로 변경할지 결정합니다. |
beautify | boolean | default : false | HTML tag를 보기좋게 표시(beautify)할지 결정합니다. |
contentPadding | object | default : 'none' | 문서 여백에 대한 값을 결정합니다. 'document': 임포트한 문서의 여백을 사용. 'current': 현재 편집기의 여백을 사용. 'none': 여백을 사용하지 않음. |
Return:
Type | Description |
---|---|
String | 사이냅에디터에서 편집한 HTML 콘텐츠 |
Example:
var html = editor.getPublishingHtml();
현재 편집기의 여백을 포함해서 HTML 가져오기
var html = editor.getPublishingHtml({'contentPadding':'current'});