If I create an email using the MLJML macos app, and import that code into grapejs, the layout is completely broken with mj-head code lost and a ton of other rendering issues.
We have a standalone grapejs editor that will apply the mjml code just fine - but the one in Mautic just doesn’t
Hello!
I think you are using mjml attributes in the header to set the classes for the whole email.
Unfortunatly this feature is not present, you’d need to code the attributes into the columns, like:
<mj-text line-height="24px" font-size="16px" color="#454545" font-family="Arial, Helvetica, sans-serif">This is my awesome text</mj-text>
As far as I know it is in the roadmap to fix this issue.
I have developers I can flick this to, but knowing where to start would be great. As I said, the stand alone version of grapejs mjml we have works fine. How is the mautic version different? I don’t understand why the entire mjml code wouldn’t be parsed intentionally. I’m just trying to understand better so we can resolve this issue.
Okay, sure. Please look at the file structure how Mautic put the emails together. Each template has multiple files. Some of them also contain the header.
Maybe @adiux an give more info.