During testing of a GrapesJS template I noticed an issue with rendering the email on iOS Devices and potentially other devices. To illustrate the problem I uploaded to screenshots of an email sent with a Mosaico template and another sent with the exported code of the Mosaico template imported to GrapesJS.
While the displaying width of the Mosaico email is correct the one of the GrapesJS has unused white space on both sides.
Good (Mosaico)
Bad (GrapesJS HTML)
While at first I was convinced that I had been doing something wrong, seeing that Mosaico works fine and GrapesJS doesn't changed my mind.
After further investigation I noticed that when importing a template in GrapesJS, GrapesJS will move around some <meta> tags, add new inline styles to the code and insert media queries, which result in layout changes to the final template.
This is the default behavior of the GrapesJS Newsletter preset but it is not suitable for mobile devices. I found a possible solution in the GrapesJS Repo: Issue #73
What can the maintainers say to this problem? Was this something you have already been aware of?
Hello everyone,
During testing of a GrapesJS template I noticed an issue with rendering the email on iOS Devices and potentially other devices. To illustrate the problem I uploaded to screenshots of an email sent with a Mosaico template and another sent with the exported code of the Mosaico template imported to GrapesJS.
While the displaying width of the Mosaico email is correct the one of the GrapesJS has unused white space on both sides.
While at first I was convinced that I had been doing something wrong, seeing that Mosaico works fine and GrapesJS doesn't changed my mind.
After further investigation I noticed that when importing a template in GrapesJS, GrapesJS will move around some
<meta>
tags, add new inline styles to the code and insert media queries, which result in layout changes to the final template.This is a example of a simple import:
Before Import
After Import
This is the default behavior of the GrapesJS Newsletter preset but it is not suitable for mobile devices. I found a possible solution in the GrapesJS Repo: Issue #73
What can the maintainers say to this problem? Was this something you have already been aware of?