diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index 0044ef5345f..75ffde1e441 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -1299,7 +1299,9 @@ const Wysiwyg = Widget.extend({ if (!this.lastMediaClicked) { return; } - new weWidgets.ImageCropWidget(this, this.lastMediaClicked).appendTo(this.$editable); + new weWidgets.ImageCropWidget(this, this.lastMediaClicked).appendTo(this.odooEditor.document.body); + this.odooEditor.toolbarHide(); + $(this.lastMediaClicked).on('image_cropper_destroyed', () => this.odooEditor.toolbarShow()); }); $toolbar.find('#image-transform').click(e => { if (!this.lastMediaClicked) {