GrapesJS / mjml

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

Set HTML with style in component #347

Closed Kevin-Vu closed 3 months ago

Kevin-Vu commented 10 months ago

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 ?

artf commented 3 months ago

style="text-align: right"