-
Hi guys, I have a user case to share. Some of our users are currently importing content that was created in another email editor provider since the GrapesJS feature in our app is still new, and they haven't fully migrated to it yet. Turned out that there is a difference between the content user sees in the editor and the appearance of the emails in the actual environment after they are sent. We have tested it and seems that GrapesJS adds some additional styling to the imported content, resulting in this difference. I might be wrong about how GrapesJS handles imported content, however I am sure that the problem resides in the editor (my wrong code or potential bug in the editor itself) as we have sent the content from the email provider directly and there was no disparity. I thought a potential solution to this issue would be to find a way for GrapesJS to prevent adding any styling to the imported content. Is there a way to achieve this? Or do you know more about internal workings of the handling the content in general which might help me solve this issue? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @KaoDeo the editor should import what is asked to import so it's not clear what are the additional styling you're referring to. It's also hard to have any idea of what is happening without a reproducible demo. |
Beta Was this translation helpful? Give feedback.
@KaoDeo unfortunately importing the entire HTML document doesn't produce the same output (you can see how some of the head elements are inserted in the body) as the input HTML string and that's definitely might be a problem for email clients.
You can probably update your export method to handle those cases but, at the moment, I don't feel the urgency to focus on it right now.