GrapesJS / mjml

Newsletter Builder with MJML components in GrapesJS

Home Page:http://grapesjs.com/demo-mjml.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set HTML with style in component

Kevin-Vu opened this issue · comments

I want to update the html of a component.
So I do this : component.components('<h1 style="text-align-left">TITLE</h1>').
But when after I get the content of my component, it doesn't have the style.
component.toHTML() returns <mj-text><h1 id="someId">TITLE</h1></mj-text>.

Any idea why ?