diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-09-17 17:49:09 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-09-17 17:49:09 +0200 |
| commit | 080f8b1f96dec30fd9568a81342b5d20cc9d521a (patch) | |
| tree | 14cecabb2c6502e73d93178bd322722e2e62f07d /addons/web_editor/static/src/js/wysiwyg/plugin | |
| parent | c12bd7125a1c64339e02ae0563f667b8de931b3b (diff) | |
| parent | d8ce75466e4a6728cccfc7696a65a399e9cf23f1 (diff) | |
[MERGE] forward port branch saas-12.3 up to d8ce75466e4
Diffstat (limited to 'addons/web_editor/static/src/js/wysiwyg/plugin')
| -rw-r--r-- | addons/web_editor/static/src/js/wysiwyg/plugin/media.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_editor/static/src/js/wysiwyg/plugin/media.js b/addons/web_editor/static/src/js/wysiwyg/plugin/media.js index b8b4a7582fe..ba7793d1d95 100644 --- a/addons/web_editor/static/src/js/wysiwyg/plugin/media.js +++ b/addons/web_editor/static/src/js/wysiwyg/plugin/media.js @@ -76,7 +76,7 @@ var MediaPlugin = AbstractPlugin.extend({ mediaWidth: mediaWidth, onlyImages: $mediaParent.data('oeField') === 'image' || $mediaParent.data('oeType') === 'image', }, - $(media).clone()[0] + $(media).clone(true, true)[0] ); mediaDialog.on('save', this, function (element) { @@ -708,7 +708,7 @@ var ImagePlugin = AbstractMediaPlugin.extend({ var media = this.context.invoke('editor.restoreTarget'); var cropImageDialog = new weWidgets.CropImageDialog(this.options.parent, {}, - $(media).clone()[0] + $(media).clone(true, true)[0] ); cropImageDialog.on('save', this, function (img) { this.context.invoke('MediaPlugin.insertMedia', media, img); @@ -727,7 +727,7 @@ var ImagePlugin = AbstractMediaPlugin.extend({ var media = this.context.invoke('editor.restoreTarget'); var altDialog = new weWidgets.AltDialog(this.options.parent, {}, - $(media).clone()[0] + $(media).clone(true, true)[0] ); altDialog.on('save', this, this._wrapCommand(function (img) { $(media).attr('alt', img.alt) |
