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액션 이름
valueString
  • 위첨자: 'superscript'
  • 아래첨자: 'subscript' 


Example:

editor.execCommand('setTextVertAlign', 'superscript'); // 위첨자
editor.execCommand('setTextVertAlign', 'subscript'); // 아래첨자
  • No labels