Skip to content

Lexical Fixes for v25.05.1 #5653

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 7 commits into from
Jun 17, 2025
Merged

Lexical Fixes for v25.05.1 #5653

merged 7 commits into from
Jun 17, 2025

Conversation

ssddanbrown
Copy link
Member

@ssddanbrown ssddanbrown commented Jun 13, 2025

For #5631

  • Fixed tiny image resize square on image insert.
  • Updated table resize handles to be more efficient, and prevented them wondering far away from tables so often.
  • Fixed table resize handles overlapping table captions.
  • Fixed text formatting being inconsistent on new paragraphs.
  • Updated media resize handling to be more reliable and to retain focus after resize.
  • Added toolbar for media element for easier menu access.
  • Fixed buggy media selection scenarios.
  • Fixed media form "src" field not working when video is using source elements.
  • Updated media embed code field to show existing embed code for direct editing.

Added specific focus on image insert, and updated resize handler to
watch for load events and toggle a resize once loaded.
Fine mouse movement and handles will now only be active when actually
within a table, otherwise less frequent mouseovers are used to track if
in/out a table.
Hides handles when out of a table, preventing a range of issues with
stray handles floating about.
Formatting was not persisted on empty paragraphs, and was instead based
upon last format encountered in selection.
This was due to overly-hasty removal of other formatting code, which
this got caught it.
Restored required parts from prior codebase.

Also updated inline format button active indicator to reflect formats
using the above, so correct buttons are shown as active even when just
in an empty paragraph.
Double bold was due to text field exporting wrapping the output in <b>
tags when the main tag would already be strong.
- Updating height/width setting to clear any inline CSS width/height
  rules which would override and prevent resizes showing. This was
  common when switching media from old editor.
  Added test to cover.
- Updated resizer to track node so that it is retained & displayed
  across node DOM changes, which was previously causing the
  resizer/focus to disappear.
- Updated toolbars to auto-refresh ui if it attempts to update targeting
  a DOM element which no longer exists.
- Removed MediaNode dom specific click handling which was causing
  selection issues, and did not seem to be needed now.
- Allowed re-editing of existing embed HTML code.
- Handled "src" form field when video is using child source tags.
@ssddanbrown ssddanbrown merged commit 2d0461b into development Jun 17, 2025
2 of 3 checks passed
@ssddanbrown ssddanbrown deleted the v25-05-1-lexical branch June 17, 2025 12:36
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