GrapesJS / mjml

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

Set HTML with style in component #347

Closed Kevin-Vu closed 1 month ago

Kevin-Vu commented 8 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 1 month ago

style="text-align: right"