캐럿이 위치한 곳에 가로줄을 삽입합니다.
문단 사이에 캐럿이 위치한 경우 문단을 나누고 그 사이에 가로줄을 삽입합니다.
...
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:
Code Block | ||||
---|---|---|---|---|
| ||||
editor.execCommand('insertHorizontalLine'); |
...