-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Checkbox): improve checkbox insertion (#220)
New behavior of inserting checkbox: - Disabled: - when selecting any text - when cursor inside complex textblock (exclude checkboxes) - selection type is some other then TextSelection or NodeSelection - If cursor is in paragraph: replace current paragraph with checkbox with contents of paragraph - If node selection or if cursor is in another textblock or checkbox: insert new checkbox after current node, and move cursor inside new checkbox
- Loading branch information
Showing
2 changed files
with
40 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters