I use GrapesJs and I want to update the html content of a component.
So I use the components method of a component : cmp.components('<h1 style="text-align:left">Hello</h1>').
But when I retrieve the html content of my component (cmp.toHTML()) the style is not here.
Set HTML with style in a GrapesJs component
134 Views Asked by K.Vu At
2
It was an issue with my grapesjs version. I was in
0.21.1and the problem disappears using0.21.5.