diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index a7bf2883759..9172ab28753 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -1359,11 +1359,6 @@ const Wysiwyg = Widget.extend({ const field = $editable.data('oe-field'); const type = $editable.data('oe-type'); - // The html_field value should not be updated while the mediaDialog is - // in use because if its value change, restoreSelection may fail since - // it has a reference to HTMLElements which are not in the DOM anymore. - this._shouldDelayBlur = true; - this.mediaDialogWrapper = new ComponentWrapper(this, MediaDialogWrapper, { resModel: model, resId: $editable.data('oe-id'),