Skip to content

Releases: GrapesJS/mjml

v0.3.2

10 Nov 14:37
Compare
Choose a tag to compare
  • feat: add pt translation (#212)

v0.3.1

02 Nov 09:59
Compare
Choose a tag to compare

feat: add French locale (#211)

v0.3.0

02 Oct 12:19
Compare
Choose a tag to compare
import 'grapesjs/dist/css/grapes.min.css'
import grapesJS from 'grapesjs'
import grapesJSMJML from 'grapesjs-mjml'

let editor = grapesJS.init({
   fromElement: 1,
   container : '#gjs',
   avoidInlineStyle : false,
   plugins: [grapesJSMJML],
   pluginsOpts: {
      [grapesJSMJML]: {
        // The font imports are included on HTML <head/> when fonts are used on the template
        fonts: {
          Montserrat: 'https://fonts.googleapis.com/css?family=Montserrat',
          'Open Sans': 'https://fonts.googleapis.com/css?family=Open+Sans'
        }
      }
   },
});

// add custom fonts options on editor's font list
editor.on('load', () => {  
  let styleManager = editor.StyleManager;
  let fontProperty = styleManager.getProperty('typography', 'font-family');

  let list = [];
  // empty list
  fontProperty.set('list', list);

  // custom list
  list.push(fontProperty.addOption({value: 'Montserrat, sans-serif', name: 'Montserrat'}));
  list.push(fontProperty.addOption({value: 'Open Sans, sans-serif', name: 'Open Sans'}));
  fontProperty.set('list', list);
  
  styleManager.render();
});

v0.2.10

28 Sep 08:38
Compare
Choose a tag to compare
  • fix: render components in the correct order after column drag and drop inside a wrapper (#204) Thanks @olivmonnier

v0.2.9

22 Sep 12:35
Compare
Choose a tag to compare
  • fix: display mj-image containing width="100%" correctly instead of showing the default mj-body width (550px)

v0.2.8

19 Sep 09:37
Compare
Choose a tag to compare
  • feat: upgrade mjml to ^4.7.0 and upgrade devDependencies, this should slightly decrease the bundle size by about 10%

v0.2.7

15 Sep 19:42
Compare
Choose a tag to compare

v0.2.6

31 Aug 19:22
Compare
Choose a tag to compare
  • fix: correctly import composite attributes (#197) thanks @aki-ks

v0.2.5

20 Aug 12:42
Compare
Choose a tag to compare
  • fix: apply custom tag when selecting custom social-element (fixes #196)

v0.2.4

12 Aug 10:57
Compare
Choose a tag to compare
  • feat: include development bundle in the final build (7420018)