redactor icon indicating copy to clipboard operation
redactor copied to clipboard

Redactor editor image deletion issue when using the options menu

Open parthi-me opened this issue 2 years ago • 0 comments

Description

We have installed Redactor plugin as our editor of choice and when we delete the image inside the editor using the option available when we click on the image it doesn't delete the image, for a moment we think it's deleted but going to the source code we can see the code for the image wasn't removed. but actually, the action failed with JS error. UiLayerManager.js:59 Uncaught Can’t remove the base layer.

But using the keyboard delete option will delete the image.

Steps to reproduce

  1. Insert an image into the editor.
  2. Click on the image you will get options to edit/delete.
  3. Click on delete.
  4. In the console we could see the following error, UiLayerManager.js:59 Uncaught Can’t remove the base layer.
  5. You may not see the image for now(But the source still has the image code not removed). But after saving the entry the image is still there.

Additional info

  • Craft version: 3.7.51
  • Plugins & versions: Redactor - 2.10.10

parthi-me avatar Aug 18 '22 13:08 parthi-me