-
- Downloads
[FIX] web_editor: fix invisible document links when sent via email
- Go to any record with a chatter (i.e. a SO)
- Use full composer to send a message
- In editor, use "File/Image" option to upload a document to the body of the message
- Upload any document (i.e. a PDF file)
- PDF icon will appear in the message
- Send the message
In the chatter, PDF icon appear in the message, allowing to download the file.
But in the sent email, the link is present but it is not visible. There is no icon.
Such link is a <a> element with "o_image" class. When converting to inline, an <img>
element is added with an icon depending on file mime-type.
However, when getting its value, a cleaning is executed, removing this added <img>.
It should not be cleaned when converting to inline.
opw-2558602
closes odoo/odoo#75133
Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
Showing
- addons/web_editor/static/src/js/backend/convert_inline.js 1 addition, 1 deletionaddons/web_editor/static/src/js/backend/convert_inline.js
- addons/web_editor/static/src/js/backend/field_html.js 1 addition, 1 deletionaddons/web_editor/static/src/js/backend/field_html.js
- addons/web_editor/static/src/js/wysiwyg/wysiwyg.js 5 additions, 3 deletionsaddons/web_editor/static/src/js/wysiwyg/wysiwyg.js
Loading
Please register or sign in to comment