[FIX] web_editor: save editor value during urgentSave

Ensure the current editor value is set in the Odoo FieldHtml during
`commitChanges` so it can be used by the `urgentSave` when needed.

closes odoo/odoo#89916

X-original-commit: 43dfc8140760497d9f0352897d71ad49b12fd6e5
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
Sébastien Geelen (sge)
2022-04-27 21:28:28 +02:00
parent 74af2b85c6
commit 1bec40e88e
@@ -100,6 +100,7 @@ var FieldHtml = basic_fields.DebouncedField.extend(TranslatableFieldMixin, {
}
var _super = this._super.bind(this);
this.wysiwyg.odooEditor.clean();
this._setValue(this._getValue());
return this.wysiwyg.saveModifiedImages(this.$content).then(async () => {
await this.wysiwyg.preSavePromise;
this._isDirty = this.wysiwyg.isDirty();