Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

Type

Attribute

Description

optionsObject

{

    applyFirstTextStyle: { string[] }

}

[ Optional ] 첫번째 글자 태그(<span>)에 스타일이 있을 경우 문단(<p>) 태그에 해당 스타일을 적용합니다.

ex) [ 'fontSize', 'fontFamily', 'color', 'backgroundColor', 'bold', 'italic', 'strike',  'underline' ]


Return:

...

Type

Description

stringHTML문자열

...

Code Block
languagejs
themeEmacs
var pubdoc = editor.xhtml4pubdoc();
var pubdocOption = editor.xhtml4pubdoc({applyFirstTextStyle: {['fontSize', 'color']}); // 옵션적용

...