정부 전자문서 필터가 적용된 HTML 문자열을 반환합니다.
Parameters:
Name | Type | Attribute | Description |
---|---|---|---|
options | Object | { applyFirstTextStyle: { string[] } } | [ Optional ] 첫번째 글자 태그(<span>)에 스타일이 있을 경우 문단(<p>) 태그에 해당 스타일을 적용합니다. ex) [ 'fontSize', 'fontFamily', 'color', 'backgroundColor', 'bold', 'italic', 'strike', 'underline' ] |
Type | Description |
---|---|
string | HTML문자열 |
Example:
var pubdoc = editor.xhtml4pubdoc(); var pubdocOption = editor.xhtml4pubdoc(['fontSize', 'color']); // 옵션적용 |
원본 | |||
---|---|---|---|
| |||
| |||
editor.xhtml4pubdoc() | editor.xhtml4pubdoc(['fontSize', 'color']) | ||
|
| ||
|
|