Outlook vs Gmail: problem with images in CKEditor
31
Views
1
Comments
Out of scope
Other

Good afternoon,


Everyone, I'm sharing a practical experience that can help those who work with sending emails with images in OutSystems, using Forge's CKEditor for Outlook and Gmail.


Problem

The CKEditor saves the image in the database and generates a link in the format:

/Download.aspx?GUID=1234...

In Outlook, this link was identified as a potential security risk (because of the .aspx) and the image was not displayed.


An alternative would be to convert the image to Base64 and embed it directly in the HTML, but in this case Gmail does not interpret it correctly and the images do not appear.


Solution

I created a Friendly URL (alias) in the Service Center to expose the images in the format:

/CKEditor/image/{GUID}.png

I adjusted the CKEditor's JavaScript to save and retrieve images using this new handler.


In the Download handler, I configured the FileName, Mime-Type, and left Save to Disk = No, ensuring that the images are displayed inline.



Changed the category to
Other
and the status to
Out of scope

Hi,

This is the wrong place to post this.

Best would be on the support page of the Forge component you changed in your environment. 

You could even suggest this as a feature on the Forge component, or apply to the team and make sure the Forge component is updated, and no clones need to be created.

Regards,

Daniel