Sets the font size of the selected text.

In caret status, the font size of the text to be entered is designated.


Parameters:

NameTypeDescription
actionNameString'fontSize' font size API
fontSizeNumberfont sizeĀ (pt)


Example:

editor.execCommand('fontSize', 12);