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