diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index 570d8ac6552483dad91f77250786efa137cca5a7..51fbaf1c5946106ea21ae63bd4541dd2e3084616 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -1575,7 +1575,7 @@ const Wysiwyg = Widget.extend({ // Unstash the mutations now that the color is picked. this.odooEditor.historyUnstash(); this._processAndApplyColor(eventName, ev.data.color); - this._updateEditorUI(); + this._updateEditorUI(this.lastMediaClicked && { target: this.lastMediaClicked }); }); colorpicker.on('color_hover', null, ev => { if (hadNonCollapsedSelection) {