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 Current »

캐럿이 위치한 문단의 속성을 설정합니다.

셀렉션 상태인 경우 셀렉션한 모든 문단의 속성을 설정합니다.


Parameters:

NameTypeDescription
actionNameString액션 이름
propertiesObject

{  id: {String}, className: {String}, style: {Object} }

설정할 속성


Example:

editor.execCommand('addParagraphProperties', { id: 'paragraph-id' }); // id 설정
editor.execCommand('addParagraphProperties', { className: 'custom-class-name' }); // class 설정
editor.execCommand('addParagraphProperties', { style: { margin: { top: 20, left: 20 } } }); // margin 설정
editor.execCommand('addParagraphProperties', { style: { padding: { bottom: 30, right: 30 } } }); // padding 설정
  • No labels