-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop all blank markers, section renders br
Before this patch, Content-Kit would insert blank markers in any empty section to ensure a cursor could be placed there. This changes that to be a section responsibility. When there are no child markers, a markup section will create a br. This means throughout the codebase sections and section offset should be used to manage editing actions. There may be no marker at a given cursor position, only using the offset in a section is reliable. Also ensures correct behavior when deleting two sections in their entirety.
- Loading branch information
Showing
20 changed files
with
422 additions
and
236 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
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
Oops, something went wrong.