Page tree
Skip to end of metadata
Go to start of metadata

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:

NameTypeDescription
actionNameString'insertHorizontalLine' horizontal line inserting API


Example:

editor.execCommand('insertHorizontalLine');
  • No labels