Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Range of fixes/updates for the new Lexical based editor #5365

Merged
merged 12 commits into from
Dec 20, 2024

Conversation

ssddanbrown
Copy link
Member

@ssddanbrown ssddanbrown commented Dec 14, 2024

Following feedback in #5245.

  • Adds auto-linking on space/enter press.
  • Adds dark-mode support.
  • Adds mobile support in UI and styles.
  • Adds "about/help" modal & button.
  • Details/collapsible blocks:
    • Added toolbar with actions
    • Made summary/label more consistent.
    • Added methods to escape block (arrow down on last element in block, or enter on empty last block).
  • Lists:
    • Improved single item indent selection retention.
    • Fixed lack of tab indent on empty list items.
    • Aligned behaviour newline on empty nested list, to un-nest list item instead of creating new nested list item.
    • Aligned nested/unnesting behaviour so that sibling/child items don't change level.

Adds dynamic and fixed (out of DOM order) positioning with location
adjustment depending on space.
Also adds smarter hiding to prevent disappearing when mouse leaves but
within the same space as the toggle.
To provide more control of the summary as part of details.
To support, added a way to ignore elements during import DOM, allowing
up to read summaries when parsing details without duplicate nodes
involved.
Includes unwrap and toggle open actions.
Enter on empty last line, or down on last empty line, will focus on the
next node after details, or created a new paragraph to focus on if
needed.
Also:
- Added svg loading support (dummy stub) for jest.
- Updated headless test case due to node changes.
- Split out editor change detected to where appropriate.
- Added functions to help with testing, like mocking our context.
- Made tab work on empty list items
- Improved select preservation on single list item tab
- Altered test context creation for more standard testing
- Makes enter on empty nested list item un-nest instead of just creating
  new list items.
- Also updated existing lists tests to use newer helper setup.
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.
Re-used existing route and moved tinymce help to its own different
route. Added test to cover.
Added new external-content block to support in editor UI.
@ssddanbrown ssddanbrown merged commit 1f88bc2 into development Dec 20, 2024
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant