Releases: GrapesJS/mjml
Releases · GrapesJS/mjml
v0.2.3
v0.2.2
v0.2.1
v0.2.0
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
- I18n support, more info here
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
v0.1.18
v0.1.17
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
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
- Fix Style Manager issue. Thanks to @Clint-Chester
- Added support to
mj-font
,mj-wrapper
andmj-group
by @emilsedgh #130