Make the selected text superscript or subscript.
In caret status, the text to be entered becomes superscript or subscript.
Parameters:
Name | Type | Description |
---|---|---|
actionName | String | 'setTextVertAlign' superscript and subscript API |
value | String | Superscript and subscript properties: 'superscript', 'subscript' |
Example:
editor.execCommand('setTextVertAlign', 'superscript'); editor.execCommand('setTextVertAlign', 'subscript');