diff options
| author | Samuel Degueldre <sad@odoo.com> | 2020-05-19 09:21:49 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-06-05 18:11:53 +0000 |
| commit | aa8d2a8be2c8f713b4b39b2aa1ea2aaf1839396c (patch) | |
| tree | f1531840d7b262d1e282d14db23a3d0ce6d41571 /addons/mass_mailing/static/src | |
| parent | c2de755bc690987f59cda27bd83a7429278955fc (diff) | |
[IMP] web_editor, *: move image optimization feature to left-panel
*: website, mass_mailing
In continuity with the nline crop, in an effort to make the image
workflow as seamless as possible in the website editor, the image
optimization feature has been moved out of the modal which could be
opened through the media-dialog and into the left panel.
This commit adds a quality slider and a width selector, as well as a
preview of the image's weight to the left panel, and removes the
image_optimize dialog.
This commit also introduces the possibility to add a color filter on
images.
Part of https://github.com/odoo/odoo/pull/51517
task-2192755
closes odoo/odoo#51517
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/mass_mailing/static/src')
| -rw-r--r-- | addons/mass_mailing/static/src/js/mass_mailing_widget.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mass_mailing/static/src/js/mass_mailing_widget.js b/addons/mass_mailing/static/src/js/mass_mailing_widget.js index 034da3f20dd..a5cba75e32f 100644 --- a/addons/mass_mailing/static/src/js/mass_mailing_widget.js +++ b/addons/mass_mailing/static/src/js/mass_mailing_widget.js @@ -58,7 +58,7 @@ var MassMailingFieldHtml = FieldHtml.extend({ var $editable = this.wysiwyg.getEditable(); - return this.wysiwyg.saveCroppedImages(this.$content).then(function () { + return this.wysiwyg.saveModifiedImages(this.$content).then(function () { return self.wysiwyg.save().then(function (result) { self._isDirty = result.isDirty; |
