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>.
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 ?