Closed zietbukuel closed 3 months ago
The editor gets the mjml for conversion to HTML in the preset:
But I don't remember if it gets the
I've been testing this outside Mautic and it doesn't seem to be a problem in the preset as you suggested. I think the issue is actually in the grapesjs-mjml library. I've created this fiddle so you can test, I was able to replicate this here as well as my own server:
https://jsfiddle.net/zietbukuel/m1vcjgn5/2/ https://grapesjs.planleftdev.com/
Can someone please give me some directions on how to fix this issue? Me and my team are willing to provide a PR to get this fixed, I just need some directions. Thanks.
Anything we can do to bump this up?
Can someone please give me some directions on how to fix this issue? Me and my team are willing to provide a PR to get this fixed, I just need some directions. Thanks.
I think the mjml-browser is not able to render the Montserrat font in mj-text. You can check this answer in mjml repo https://github.com/mjmlio/mjml/issues/80#issuecomment-191718675 And add some custom style for mj-text component and have to create component for mj-font component in order to make the custom font to work.
Looks like the font
option, added years ago, never considered adding those fonts as components inside the mj-head, that means you'll only see them in the HTML export.
I'd suggest for now to rely directly on the mj-font
instead of fonts
option.
Hello guys I'm using Mautic with GrapesJS and I've been able to add my own Fonts (I see them in the dropdown), but the font URL is not added anywhere to the markup. Here's my code:
Please let me know if I'm missing something or if this is a bug. Thanks.