Sets the font size of the selected text.
In caret status, the font size of the text to be entered is designated.
Parameters:
Name | Type | Description |
---|---|---|
actionName | String | 'fontSize' font size API |
fontSize | Number | font sizeĀ (pt) |
Example:
editor.execCommand('fontSize', 12); |