[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
This commit is contained in:
qsm-odoo
2018-07-12 17:07:01 +02:00
parent 03d8f528b7
commit 965b2b7478
@@ -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) {