]> BookStack Code Mirror - bookstack/commit
Lexical: Made a range of selection improvements
authorDan Brown <redacted>
Mon, 26 May 2025 13:48:13 +0000 (14:48 +0100)
committerDan Brown <redacted>
Mon, 26 May 2025 13:51:03 +0000 (14:51 +0100)
commit2a324755414e18d96a472425533e0c033ffebe98
tree76500a85018f7c316868dd9c118bd20df15c5e86
parent1243108e0fbaef6a0b678a872eb9fbf2f269a57a
Lexical: Made a range of selection improvements

Updated up/down handling to create where a selection candidate does not
exist, to apply to a wider scenario via the selectPrevious/Next methods.

Updated DOM selection change handling to identify single selections
within decorated nodes to select them in full, instead of losing
selection due to partial selection of their contents.

Updated table selection handling so that our colgroups are ignored for
internal selection focus handling.
resources/js/wysiwyg/lexical/core/LexicalNode.ts
resources/js/wysiwyg/lexical/core/LexicalSelection.ts
resources/js/wysiwyg/lexical/table/LexicalTableSelectionHelpers.ts
resources/js/wysiwyg/services/keyboard-handling.ts
resources/js/wysiwyg/ui/framework/manager.ts
resources/js/wysiwyg/utils/nodes.ts