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액션 이름
styleObject적용할 스타일


Example:

editor.execCommand('addRunStyle', { fontSize: {value: 20, unit: 'pt'} }); // 글자 크기 추가
editor.execCommand('addRunStyle', { color: {r: 255, g: 0, b: 0} }); // 글자 색 추가
editor.execCommand('addRunStyle', { backgroundColor: {r: 0, g: 0, b: 255} }); // 글자 배경색 추가
  • No labels