]> BookStack Code Mirror - bookstack/commit
Lexical: Adjusted handling of child/sibling list items on nesting
authorDan Brown <redacted>
Tue, 17 Dec 2024 18:07:46 +0000 (18:07 +0000)
committerDan Brown <redacted>
Tue, 17 Dec 2024 18:07:46 +0000 (18:07 +0000)
commitf4005a139b0ac102674cad0185fa6c32265e68f5
tree8a5e191ca9b2580d0658e727122d112f19ba8521
parentfca8f928a380350a1a6441530a722f4578f8ae14
Lexical: Adjusted handling of child/sibling list items on nesting

Sibling/child items will now remain at the same visual level during
nesting/un-nested, so only the selected item level is visually altered.

Also added new model-based editor content matching system for tests.
resources/js/wysiwyg/lexical/core/__tests__/utils/index.ts
resources/js/wysiwyg/utils/__tests__/lists.test.ts [new file with mode: 0644]
resources/js/wysiwyg/utils/lists.ts