]> BookStack Code Mirror - bookstack/commit
Lexical: Improved nested details interaction
authorDan Brown <redacted>
Tue, 26 Aug 2025 13:41:42 +0000 (14:41 +0100)
committerDan Brown <redacted>
Tue, 26 Aug 2025 13:45:15 +0000 (14:45 +0100)
commit849bc4d6c3b1fbeb09035a0099509a00c2684b93
tree623991b5da03f94170146d352bdd43efb7fc6bc4
parentee994fa2b712ddf51befba2bba0ab106edc5e339
Lexical: Improved nested details interaction

- Set to open by default on insert.
- Updated selection handling not to always fully cascade to lowest
  editable child on selection, so parents can be reliably selected.
- Updated mouse handling to treat details panes like the root element,
  inserting within-details where relevant.
resources/js/wysiwyg/index.ts
resources/js/wysiwyg/lexical/core/LexicalNode.ts
resources/js/wysiwyg/lexical/core/LexicalSelection.ts
resources/js/wysiwyg/lexical/core/nodes/LexicalElementNode.ts
resources/js/wysiwyg/lexical/rich-text/LexicalDetailsNode.ts
resources/js/wysiwyg/services/mouse-handling.ts
resources/js/wysiwyg/ui/defaults/buttons/objects.ts
resources/sass/_editor.scss