redactor
redactor copied to clipboard
Redactor editor image deletion issue when using the options menu
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
- Insert an image into the editor.
- Click on the image you will get options to edit/delete.
- Click on delete.
- In the console we could see the following error,
UiLayerManager.js:59 Uncaught Can’t remove the base layer
. - 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