]> BookStack Code Mirror - bookstack/commit
Lexical: Made list selections & intendting more reliable
authorDan Brown <redacted>
Thu, 27 Mar 2025 17:49:48 +0000 (17:49 +0000)
committerDan Brown <redacted>
Thu, 27 Mar 2025 17:49:48 +0000 (17:49 +0000)
commit62c8eb335785e41c730569ec34df7137f2f325f1
tree09c155fa66f67c8de78b4f8a6b095e36813560fb
parentc03e44124a3312d6832f71103bda76ab66646a54
Lexical: Made list selections & intendting more reliable

- Added handling to not include parent of top-most list range selection
  so that it's not also changed while not visually part of the
  selection range.
- Fixed issue where list items could be left over after unnesting, due
  to empty checks/removals occuring before all child handling.
- Added node sorting, applied to list items during nest operations so
  that selection range remains reliable.
resources/js/wysiwyg/utils/lists.ts
resources/js/wysiwyg/utils/nodes.ts