diff --git a/addons/web_editor/static/src/js/backend/html_field.js b/addons/web_editor/static/src/js/backend/html_field.js index 0b2a0648fb6..7d4356d06aa 100644 --- a/addons/web_editor/static/src/js/backend/html_field.js +++ b/addons/web_editor/static/src/js/backend/html_field.js @@ -354,10 +354,13 @@ export class HtmlField extends Component { async commitChanges({ urgent } = {}) { if (this._isDirty() || urgent) { if (this.wysiwyg) { + // Avoid listening to changes made during the _toInline process. + this.wysiwyg.odooEditor.observerUnactive('commitChanges'); await this.wysiwyg.saveModifiedImages(); if (this.props.isInlineStyle) { await this._toInline(); } + this.wysiwyg.odooEditor.observerActive('commitChanges'); } await this.updateValue(); }