From c65e284dccfde33891b7282048c0200984e7a8f9 Mon Sep 17 00:00:00 2001 From: "Emilien Durieu (edu)" Date: Fri, 13 Nov 2020 12:16:22 +0000 Subject: [PATCH] [FIX] web_editor: image overlay did not update with changes The blue overlay on the snippet currently being edited did not update when the size or place of the element changed. The overlay is now edited on each Jabberwock commit. closes odoo/odoo#61716 Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/src/js/wysiwyg/wysiwyg.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index efd097abfaf..f773064ac8a 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -400,6 +400,7 @@ var Wysiwyg = Widget.extend({ } } this.snippetsMenu.updateJabberwockToolbarContainer(currentSelectionType);//.bind(this.snippetsMenu); + this.snippetsMenu.updateCurrentSnippetEditorOverlay(); if (params.commandNames.includes('undo') || params.commandNames.includes('redo')) { setTimeout(() => {