-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
for authorsBug or enhancement regarding explorable authorsBug or enhancement regarding explorable authors
Milestone
Description
Problem: For a given selection S (can be empty/nonempty, TextSelection/NodeSelection/GapSelection) and a fragment F, create a new fragment R that preserves as much of S as possible.
For S -> empty TextSelection:
- Replace block content in F with equivalent inline content if possible.
- If F is a single node and can replace the container of S, replace the container of S.
- Else insert content (and if F contains block content, split container at the block content).
For S -> nonempty TextSelection: ???
For S -> GapSelection:
- Replace inline content in F with equivalent block content if possible..
- If F still contains inline content, wrap each inline node in a valid container.
- Insert F.
For S -> NodeSelection:
- If selected node fits into F, place it in F.
- Else if selected node does not fit into F, replace it with F.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
for authorsBug or enhancement regarding explorable authorsBug or enhancement regarding explorable authors