Skip to content

Releases: GrapesJS/mjml

v0.2.3

29 Jul 13:19
Compare
Choose a tag to compare

Changes

  • Adds new command mjml-import:change that triggers when mjml gets imported, you can listen for this event using the following code:
editor.on('run:mjml-import:change', (mjml) => {
  console.log(mjml);
})

v0.2.2

28 Jul 15:42
Compare
Choose a tag to compare

changes

  • fix: npm publish wrongfully ignoring locale files (e458e62)

v0.2.1

28 Jul 15:27
Compare
Choose a tag to compare

Changes

  • fix: make sure to bundle locale files in final build, the locale files should now be located correctly in grapesjs-mjml/locale/en.js

v0.2.0

28 Jul 12:43
Compare
Choose a tag to compare

Breaking change

  • Now requires GrapesJS v0.15.9 or higher
  • Removed the following plugin options:
    categoryLabel
    modalTitleImport
    modalBtnImport
    modalLabelImport
    modalTitleExport
    modalLabelExport
    You can now change these by overriding the i18n translation file, for example:
// old
pluginsOpts: {
   [grapesJSMJML]: {
      categoryLabel: 'custom category'
   }
},

// new
import en from 'grapesjs-mjml/locale/en'

en['grapesjs-mjml'].category = 'custom category'

pluginsOpts: {
   [grapesJSMJML]: {
      i18n: { en: en }
   }
},

Added

import 'grapesjs/dist/css/grapes.min.css'
import grapesJS from 'grapesjs'
import nl from 'grapesjs/locale/nl'
import grapesJSMJML from 'grapesjs-mjml'
import mjmlNL from 'grapesjs-mjml/locale/nl'

grapesJS.init({
   fromElement: 1,
   container : '#gjs',
   avoidInlineStyle : false,
   i18n: {
      // locale: 'en', // default locale
      // detectLocale: true, // by default, the editor will detect the language
      // localeFallback: 'en', // default fallback
      messages: { nl: nl },
   },
   plugins: [grapesJSMJML],
   pluginsOpts: {
      [grapesJSMJML]: {
        // Optional options
        i18n: { nl: mjmlNL }
      }
   },
});

Translation missing here? feel free to send a PR and we will merge it in!

v0.1.19

23 Jul 07:24
Compare
Choose a tag to compare
  • fix: mj-button missing paddin-top: 10px in style-default

v0.1.18

20 Jul 14:42
Compare
Choose a tag to compare
  • fix: missing units for border-detached, fixes #119 (ceaefdf)
  • fix: add default icons to new hero/wrapper components (31a0661)
  • feat: add font-style to typography options, fixes #93 (ea507cb)
  • feat: bump internal dependencies (5c5baf8)

v0.1.17

17 Jul 12:47
Compare
Choose a tag to compare

It's been a while since the last release, so please let us know if you encounter any issues

  • Fix: remove duplicate devicePreviewMode config set. (#146)
  • Fix: accept mj-wrapper as a droppable on mj-body. (#142)
  • Fix: several incorrect closing tags. (#144)
  • Fix: grapesjs fails to initialize in IE11. (#162)
  • Fix: style-default into style. (#163)
  • Fix: handle on attributes change. (#171)
  • Fix: don't apply extra mj-body when the parent is not mj-body. (#184)
  • Fix: mj-group not selecting child correctly. (#185)
  • Feat: add seperate named exports for plugins. (#165)
  • Feat: unpin mjml version and avoid circular dependencies. (#183)
  • Feat: Added support for the Hero Component. Thanks @aroop !

v0.1.16

17 Jul 12:42
Compare
Choose a tag to compare

this version didn't get pushed to the registry correctly, see https://github.com/artf/grapesjs-mjml/releases/tag/v0.1.17

v0.1.15

09 Oct 21:30
Compare
Choose a tag to compare

v0.1.12

16 Sep 22:54
Compare
Choose a tag to compare
  • Allow selection editing 4d1a4c8
  • Fix e.getMjmlAttributes is not a function #118