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

DOC-2609: Resizing images by typing into the input didn't update the … #3582

Merged
Prev Previous commit
Next Next commit
Update modules/ROOT/pages/7.6.1-release-notes.adoc
Co-authored-by: Karl Kemister-Sheppard <[email protected]>
abhinavgandham and kemister85 authored Jan 21, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit c9a740461ac99cd024d02e20dac9cee3debbbe71
8 changes: 4 additions & 4 deletions modules/ROOT/pages/7.6.1-release-notes.adoc
Original file line number Diff line number Diff line change
@@ -110,13 +110,13 @@ The {productname} {release-version} release includes an accompanying release of
==== Resizing images by typing into the input didn't update the `style` attribute correctly.
// TINY-11669

An issue was identified where the internal custom `style` attribute of an image was not updated correctly when its width and height were modified via user input.
An issue was identified where an internal custom `style` attribute of an image was not updated correctly after a user modified its width and height.

This occurred because the resize function was triggered while the selection was elsewhere, due to a debounce delay between the input and the resize operation. As a result, the resize operation was performed on the current selection instead of the intended image.
This issue occurred because the resize function was triggered while the selection focus was elsewhere, due to a debounce delay between the input and the resize operation. As a result, the resize operation was performed on the current selection instead of the intended image.

This led to other editor components that rely on that custom `style` attribute accidentally reading outdated values, and the resize not being applied correctly since the selection was not on the image.
This led to other editor components that rely on that custom `style` attribute to accidentally read outdated values, resulting in the resize not being applied correctly since the selection was not on the intended image.

{productname} {release-version} resolves this issue by updating that custom `style` attribute appropriately whenever a resize operation is performed. The resize function now takes in the intended image as a parameter, ensuring that all editor components referencing that custom `style` attribute read the most recent value entered. Additionally, the resize operation is applied to the correct image, even before the debounce time elapses.
{productname} {release-version} addresses this issue, by updating the custom `style` attribute appropriately whenever a resize operation is performed. The resize function now takes in the intended image as a parameter, ensuring that all editor components referencing that custom `style` attribute read the most recent value entered. Additionally, the resize operation is applied to the correct image, even before the debounce time elapses.

For information on the **Image Optimizer** plugin, see: xref:uploadcare.adoc[Image Optimizer].