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