Page tree

Versions Compared

Key

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

셀렉션된 텍스트에 첨자(위첨자, 아래첨자)를 설정합니다.

캐럿 상태인 경우 입력될 텍스트의 첨자를 설정합니다Make the selected text superscript or subscript.

In caret status, the text to be entered becomes superscript or subscript.


Parameters:

NameTypeDescription
actionNameString액션 이름'setTextVertAlign' superscript and subscript API
valueString위첨자Superscript and subscript properties: 'superscript'아래첨자: , 'subscript' 


Example:

Code Block
languagejs
themeEmacs
editor.execCommand('setTextVertAlign', 'superscript'); //
위첨자
editor.execCommand('setTextVertAlign', 'subscript'); // 아래첨자