Skip to content

Fix copying/pasting images inside the Content Editor

What does this MR do and why?

This MR fixes a bug in the Content Editor where cutting/copying an image inside the editor and pasting it inside the editor again resulted in invalid Markdown.

Screenshots or screen recordings

Before

Screenshot that demonstrates the broken behavior

After

Screenshot that demonstrates the Content Editor working correctly after the bug fix

How to set up and validate locally

  1. Ensure you can upload images in your local environment.
  2. Edit a Wiki page.
  3. Switch to the Content Editor
  4. Drag an image inside the editor and wait until it is uploaded.
  5. Cut the image and paste it again in the editor.
  6. Switch to the Edit source mode. The image should still have a valid path.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Enrique Alcántara

Merge request reports