Ronaldo Hoch
Ronaldo Hoch
Hello. It will be released soon in bower?
Up! :D We need it.
> > update renderStyle method, this can work. but It's not the best way > > ``` > > renderStyle() { > > const model_style = this.model.get('style') || {} >...
> > 更新 renderStyle 方法,这可以工作。 但这不是最好的方法 > > ``` > > renderStyle() { > > const model_style = this.model.get('style') || {} > > const style = Object.keys(this.model.get('style')).map(attr=>`${attr}:${model_style[attr]};`) > > this.el.setAttribute('style',...
Hello again. Guys, find other bug, here is the solution: ```js renderStyle() { const model_style = this.model.get('style') || {} const stylable = this.model.attributes.stylable; const style = Object.keys(model_style).filter(attr=>stylable.indexOf(attr)>0).map(attr => `${attr}:${model_style[attr]};`); this.el.setAttribute('style',...
@DRoet does you have any idea to where to start looking for this issue?
Are you guys using `mj-attributes` inside `mj-head` as shown in documentation? https://documentation.mjml.io/#mj-attributes
more easy to test, run the commands: ```editor.DomComponents.clear()``` ```editor.setComponents("")``` Also, the solution proposed by @thewrath works for me.