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

Lexical Fixes: Round 3 #5558

Merged
merged 5 commits into from
Apr 2, 2025
Merged

Lexical Fixes: Round 3 #5558

merged 5 commits into from
Apr 2, 2025

Conversation

ssddanbrown
Copy link
Member

@ssddanbrown ssddanbrown commented Mar 27, 2025

As per #5245.

  • Fixed issues with content not saving on short-cut usage.
  • Fixed task list handling from prior editor formats.
  • Improved reliability and fixed issues with list nesting operations & selection.
  • Improved keyboard navigation to areas around images.

Found that saving via Ctrl+Enter did not save as logic to load editor
output into form was bypassed, which this fixes by ensuring submit
events are raised during for this shortcut.

Submit handling also gets a timeout added since, at least in FF,
requestSubmit did not re-submit a form while in a submit event.
Updated list DOM parsing to properly consider task list format set by
other MD/WYSIWYG editors.
@ssddanbrown ssddanbrown added this to the v25.02.2 milestone Mar 27, 2025
@ssddanbrown ssddanbrown self-assigned this Mar 27, 2025
- Added handling to not include parent of top-most list range selection
  so that it's not also changed while not visually part of the
  selection range.
- Fixed issue where list items could be left over after unnesting, due
  to empty checks/removals occuring before all child handling.
- Added node sorting, applied to list items during nest operations so
  that selection range remains reliable.
- Added specific handling to move/insert-up/down on arrow press.
- Prevented resize overlay from interrupting image node focus.
Also updated list tests to new test process.
@ssddanbrown ssddanbrown merged commit 78a0a2f into development Apr 2, 2025
3 of 4 checks passed
@ssddanbrown ssddanbrown deleted the lexical_round3 branch April 2, 2025 16:23
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