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 7e65288e29f..6fe06a56b7a 100644 --- a/addons/web_editor/static/src/js/backend/html_field.js +++ b/addons/web_editor/static/src/js/backend/html_field.js @@ -354,6 +354,9 @@ export class HtmlField extends Component { } async commitChanges({ urgent } = {}) { if (this._isDirty() || urgent) { + if (urgent) { + await this.updateValue(); + } if (this.wysiwyg) { // Avoid listening to changes made during the _toInline process. this.wysiwyg.odooEditor.observerUnactive('commitChanges'); @@ -532,7 +535,7 @@ export class HtmlField extends Component { }])); } _onWysiwygBlur() { - this.commitChanges({ urgent: true }); + this.commitChanges(); } async _onReadonlyClickChecklist(ev) { if (ev.offsetX > 0) {