diff --git a/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js b/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js index 61fec6bc220..a05b18988cd 100644 --- a/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js +++ b/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js @@ -489,7 +489,6 @@ export class OdooEditor extends EventTarget { this.observer = new MutationObserver(records => { records = this.filterMutationRecords(records); if (!records.length) return; - this.dispatchEvent(new Event('contentChanged')); clearTimeout(this.observerTimeout); if (this._observerTimeoutUnactive.size === 0) { this.observerTimeout = setTimeout(() => { @@ -722,6 +721,7 @@ export class OdooEditor extends EventTarget { this._checkStepUnbreakable = true; this._recordHistorySelection(); this.dispatchEvent(new Event('historyStep')); + this.dispatchEvent(new Event('contentChanged')); this.multiselectionRefresh(); } // apply changes according to some records diff --git a/addons/web_editor/static/src/js/backend/field_html.js b/addons/web_editor/static/src/js/backend/field_html.js index f5cf305a839..9388a401bee 100644 --- a/addons/web_editor/static/src/js/backend/field_html.js +++ b/addons/web_editor/static/src/js/backend/field_html.js @@ -465,7 +465,7 @@ var FieldHtml = basic_fields.DebouncedField.extend(TranslatableFieldMixin, { * @param {OdooEvent} ev */ _onChange: function (ev) { - this._doDebouncedAction.apply(this, arguments); + this._doAction(); }, /** * Allows Enter keypress in a textarea (source mode)