]> BookStack Code Mirror - bookstack/commit
Lexical: Further improvements to table selection and captions
authorDan Brown <redacted>
Wed, 28 May 2025 21:47:39 +0000 (22:47 +0100)
committerDan Brown <redacted>
Wed, 28 May 2025 21:47:39 +0000 (22:47 +0100)
commitb862f12a5072ee1429f3eab6ae3be454f4fab5c4
tree186282ce38c3d695aae6d491874dcc1cfad6e443
parentd9ea52522ea577e960ff978e186fd7c5226535f5
Lexical: Further improvements to table selection and captions

- Fixed errors with selection and range handling due to captions
  existing.
- Updated TableNode change handling to update existing DOM instead of
  re-creating, which avoids breaking an attached selection helper.
  - To support, Added function to handle node change detection and apply
    relevant dom updates for common properties.
resources/js/wysiwyg/lexical/core/nodes/common.ts
resources/js/wysiwyg/lexical/table/LexicalTableNode.ts
resources/js/wysiwyg/lexical/table/LexicalTableSelectionHelpers.ts
resources/js/wysiwyg/lexical/table/LexicalTableUtils.ts
resources/js/wysiwyg/ui/framework/helpers/table-selection-handler.ts
resources/js/wysiwyg/utils/tables.ts