

MJMLs open-source engine generates high quality responsive HTML compliant with best practices. Its semantic syntax makes it easy and straightforward and its rich standard components library speeds up your development time and lightens your email codebase. Let fontProperty = styleManager.getProperty('typography', 'font-family') MJML is a markup language designed to reduce the pain of coding a responsive email. add custom fonts options on editor's font list The font imports are included on HTML when fonts are used on the template localeFallback: 'en', // default fallbackįonts usage: import 'grapesjs/dist/css/' Its semantic syntax makes the language easy and straightforward while its rich standard components library shortens your development time and lightens your email codebase. detectLocale: true, // by default, the editor will detect the language MJML is a markup language created by Mailjet and designed to reduce the pain of coding a responsive email. Import mjmlNL from 'grapesjs-mjml/locale/nl' Or using ESM imports: import 'grapesjs/dist/css/' Reset the Style Manager and add new properties for MJML I18n object containing language more infoĬlean all previous devices and set a new one for mobile Mj-wrapper mj-group mj-section mj-column mj-text mj-image mj-button mj-social mj-divider mj-spacer mj-style mj-font mj-hero Options OptionĬustom fonts on exported HTML header more info MJML components are rendered in real-time using the official v4 compiler (+ some mocks to make it run in the browser), therefore the result is, almost, the same as using the MJML Live Editor.

This plugin enables the usage of MJML components inside the GrapesJS environment.
