From 965b2b747860a3b90efb60a48b2b482384a5c795 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 12 Jul 2018 17:07:01 +0200 Subject: [PATCH] [FIX] web_editor: properly wait for save of the editor A simple 'return' statement was removed by mistake with commit https://github.com/odoo/odoo/commit/a473453b3166a381130d9bd6ec4851b9e1ecab26 --- addons/web_editor/static/src/js/editor/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/editor/editor.js b/addons/web_editor/static/src/js/editor/editor.js index 7536c1f5516..ca9f5b8ba51 100644 --- a/addons/web_editor/static/src/js/editor/editor.js +++ b/addons/web_editor/static/src/js/editor/editor.js @@ -145,7 +145,7 @@ var EditorMenuBar = Widget.extend({ save: function (reload) { var self = this; this.snippetsMenu.cleanForSave(); - this._saveCroppedImages().then(function () { + return this._saveCroppedImages().then(function () { return self.rte.save(); }).then(function () { if (reload !== false) {