Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

기본 스타일 지정 (Default Style)

  • 기본 스타일을 지정하여 inline-style로 랜더링 됩니다.


'editor.defaultStyle': 지정하고싶은 모델 Element Type에 기본 속성을 지정할 수 있습니다.

  • cssText String 형태로 지정하고싶은 Style을 설정
  • 현재 나열된 Element들의 속성만 지정 가능
synapeditor.config.js
'editor.defaultStyle': {
    'Body': 'font-family: Arial, Helvetica, sans-serif; font-size: 11pt; line-height: 1.2;',
    'Paragraph': '',
    'TextRun': '',
    'Div': '',
    'Image': '',
    'Video': '',
    'List': '',
    'ListItem': '',
    'Quote': '',
    'Table': '',
    'TableRow': '',
    'TableCell': '',
    'HorizontalLine': '',
    'Iframe': ''
},
  • Body: .se-contents영역을 의미합니다.
  • Paragraph: <p> tag를 의미합니다.
  • TextRun: <span> tag를 의미합니다.
  • Div: <div> tag를 의미합니다.
  • Image: <img> tag를 의미합니다.
  • Video: <video> tag를 의미합니다.
  • List: <ul> tag를 의미합니다.
  • ListItem: <li> tag를 의미합니다.
  • Quote: <blockquote> tag를 의미합니다.
  • Table: <table> tag를 의미합니다.
  • TableRow: <tr> tag를 의미합니다.
  • TableCell: <td> tag를 의미합니다.
  • HorizontalLine: <hr> tag를 의미합니다.
  • Iframe: <iframe> tag를 의미합니다.
  • No labels