Issue #1 is refactoring the editor engine, once that has been resolved, bold, italic, underline, and strike-through should be added into the toolbox as ToggleItems.
When selection is collapsed:
When toggling on range marker: Add range marker for entire line.
When toggling off range marker: remove range marker from surrounding area (will be variable).
When selection is not collapsed:
Edge case: When adding range marker, make sure there is no space with enclosed text.
When toggling on range marker: Add range markers surrounding selection.
When toggling off range marker: Add range markers surrounding selection.
Issue #1 is refactoring the editor engine, once that has been resolved, bold, italic, underline, and strike-through should be added into the toolbox as
ToggleItems
.When selection is collapsed:
When selection is not collapsed: