...
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']}); // 옵션적용 |
| 원본 | 옵션 없는경우 | 옵션이 지정된 경우 | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||
| HTML |
|---|
<p style="margin: 16px 0px; display: block; overflow-wrap: break-word;"><u><b><i>사이냅소프트</i></b></u><i> 웹에디터</i></p> |
| Code Block | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
<div class="se-contents" style="font-family: Arial, Helvetica, sans-serif; font-size: 11pt; line-height: 1.2;">
<p style="margin: 16px 0px; display: block; overflow-wrap: break-word;"><span style="font-weight: bold; font-style: italic; text-decoration: underline line-through; font-size: 16pt; color: rgb(246, 179, 127);">사이냅소프트</span><span style="font-style: italic;"> 웹에디터</span></p>
</div> |
| Html-bobswift |
|---|
<p style="margin: 16px 0px; display: block; overflow-wrap: break-word;"><u><b><i>사이냅소프트</i></b></u><i> 웹에디터</i></p> |
| Html-bobswift |
|---|
<p style="font-size: 16pt; color: rgb(246, 179, 127); margin: 16px 0px; display: block; overflow-wrap: break-word;"><u><b><i>사이냅소프트</i></b></u><i> 웹에디터</i></p> |
| Code Block | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
<p style="margin: 16px 0px; display: block; overflow-wrap: break-word;">
<u><b><i>사이냅소프트</i></b></u>
<i> 웹에디터</i>
</p> |
| Code Block | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
<p style="font-size: 16pt; color: rgb(246, 179, 127); margin: 16px 0px; display: block; overflow-wrap: break-word;">
<u><b><i>사이냅소프트</i></b></u>
<i> 웹에디터</i>
</p> |
...