Designates the font family of the selected text.
In caret status, the font family of the text to be entered is designated.
Parameters:
Name | Type | Description |
---|---|---|
actionName | String | 'fontName' font family changing API |
fontName | String | font family (ex; 'Arial') |
Example:
editor.execCommand('fontName', 'Arial');