Skip to content

Lexical Editor: Further fixes #5627

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

Merged
merged 9 commits into from
May 28, 2025
Merged

Lexical Editor: Further fixes #5627

merged 9 commits into from
May 28, 2025

Conversation

ssddanbrown
Copy link
Member

@ssddanbrown ssddanbrown commented May 25, 2025

For #5245

Todo

  • Move to beta status
  • Start a new feedback thread

Fixes issues where drawings could not be removed via backspace or
delete.
@ssddanbrown ssddanbrown added this to the Next Feature Release milestone May 25, 2025
@ssddanbrown ssddanbrown self-assigned this May 25, 2025
Now toolbars stay open on mouse-out, and close on other toolbar open,
outside click or an accepted action.
To support:
- Added new system to track and manage open dropdowns.
- Added way for buttons to optionally emit events upon actions.
- Added way to listen for events.
- Used the above to control when dropdowns should hide on action, since
  some dont (like overflow containers and split dropdown buttons).
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.
Also fixed some resizer zindex issues.
Specifically added to align with existing TinyMCE behaviour which was
used by some users based upon new editor feedback.
Avoids misuse of selectPrevious/Next as per prior commit which was then
causing problems elsewhere, and is probably best to avoid creation in
those select methods anyway.
- 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.
@ssddanbrown ssddanbrown merged commit 68df43e into development May 28, 2025
11 of 18 checks passed
@ssddanbrown ssddanbrown deleted the lexical_20250525 branch May 28, 2025 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant