Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(HorizontalRule): improve horizontal line insertion (#218)
The behavior of inserting horizontal line: - Disabled: - when selecting any text - when cursor inside complex textblock - selection type is some other then TextSelection or NodeSelection - If node selection: replace the selected node with horizontal_rule - If cursor is in an empty paragraph: insert horizontal_rule before current paragraph - If cursor is in another textblock or a non-empty paragraph: insert horizontal_rule and a new empty paragraph after the current textblock
- Loading branch information