[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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user