Fix resizing of attached image in RTE

What does this MR do and why?

Fixes a bug where resizing of attached image in Rich Text Editor doesn't work correctly, this was a regression caused by !205026 (merged).

References

Screenshots or screen recordings

Before After

How to set up and validate locally

  1. Go to GFM input (i.e. Issue/MR description or comment input fields)
  2. Switch to Rich Text Editing
  3. Attach an image
  4. Select the image and try to resize using resize handlers
    • With the fix made in this MR, resize should work as expected.
  5. Additionally also test following scenario to make sure the fix made in !205026 (merged) continues to work.
    • Have two GFM input textareas open on the same page
    • Set both of them to be RTE
    • Type in text in one input field
    • Select the text and drag and drop it into another input field
    • Moving text between two Rich Text GFM fields via drag and drop should continue to work.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading