GrapesJS / mjml

Newsletter Builder with MJML components in GrapesJS
http://grapesjs.com/demo-mjml.html
BSD 3-Clause "New" or "Revised" License
628 stars 226 forks source link

mj-style not working in v0.5.4 #248

Closed realdali closed 3 years ago

realdali commented 3 years ago

I am running the index.html in package, and bowser will throw the error as below, and the mj-style doesn't work.

grapesjs:2 TypeError: Cannot read property 'replace' of undefined at e.default (index.js:1) at e.default (index.js:1) at p (utils.js:17) at r.getTemplateFromMjml (Style.js:35) at render (index.js:251) at r.addToCollection (grapesjs:2) at grapesjs:2 at Module.Te (grapesjs:2) at r.each (grapesjs:2) at render (grapesjs:2) {level: "error"}

realdali commented 3 years ago

image

added tag can solve this problem

realdali commented 3 years ago

add <mj-body></mj-body> in Style.js