Insert texts at the caret position.
When there is a selection, the selected block is deleted and the text is inserted.
Parameters:
Name | Type | Description |
---|---|---|
actionName | String | 'insertText' text inserting API |
text | String | Text to insert |
Example:
editor.execCommand('insertText', 'text');