Insert horizontal line at the caret position
When the caret is positioned within a paragraph, the paragraph is divided and horizontal line is inserted.
When there is a selection, the selected block is deleted and horizontal line is inserted.
Parameters:
Name | Type | Description |
---|---|---|
actionName | String | 'insertHorizontalLine' horizontal line inserting API |
Example:
editor.execCommand('insertHorizontalLine');