diff options
| author | Christophe Matthieu <chm@odoo.com> | 2018-07-04 13:31:43 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2018-07-11 15:38:59 +0200 |
| commit | f83f5322373de97bd9fb3b4c6738e297cadaafa7 (patch) | |
| tree | 3e6bf0aba16609257f42f6e633b2d3b226c2675b /addons/web_editor/static/src/js/inline.js | |
| parent | 97dbb8c6af4c6af0622497b276bdfb40ee0a3215 (diff) | |
[FIX] web_editor: send an image thumbnail for attachment link in mail
Before this fix attachmentThumbnailToLinkImg is not called for
style-inline options. The mail received does not have thumbnail and the
user can't click on the invisible link.
opw-1863659
Diffstat (limited to 'addons/web_editor/static/src/js/inline.js')
| -rw-r--r-- | addons/web_editor/static/src/js/inline.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/inline.js b/addons/web_editor/static/src/js/inline.js index 8715b5b7f24..4907379bcf4 100644 --- a/addons/web_editor/static/src/js/inline.js +++ b/addons/web_editor/static/src/js/inline.js @@ -41,6 +41,7 @@ snippet_editor.Class.include({ start: function () { _.defer(function () { var $editable = $('#editable_area'); + transcoder.linkImgToAttachmentThumbnail($editable); transcoder.imgToFont($editable); transcoder.styleToClass($editable); @@ -53,7 +54,7 @@ snippet_editor.Class.include({ this._super.apply(this, arguments); var $editable = $('#editable_area'); - transcoder.linkImgToAttachmentThumbnail($editable); + transcoder.attachmentThumbnailToLinkImg($editable); transcoder.fontToImg($editable); transcoder.classToStyle($editable); |
