You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In GrapesJS, I use two different styling methods: inline styles and class styles. I'm trying to understand if, when the inline styles are reset, the styles defined in the class will be applied in the style manager. This works perfectly in normal GrapesJS, but I encounter issues when using MJML.
In MJML, I have used mj-style and marked all properties as important. I expect that once the inline styles are cleared, the class values should update accordingly. However, when I clear the inline styles, the input box returns empty. For example, if I have an inline font-size of 13px and a class css-class that sets the font-size to 40px, resetting the font-size correctly changes it to 40px, but the value in the font-size input box does not update.
Why does this discrepancy occur, and how can I ensure that the style manager reflects the class style values?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In GrapesJS, I use two different styling methods: inline styles and class styles. I'm trying to understand if, when the inline styles are reset, the styles defined in the class will be applied in the style manager. This works perfectly in normal GrapesJS, but I encounter issues when using MJML.
In MJML, I have used
mj-style
and marked all properties as important. I expect that once the inline styles are cleared, the class values should update accordingly. However, when I clear the inline styles, the input box returns empty. For example, if I have an inlinefont-size
of13px
and a classcss-class
that sets thefont-size
to40px
, resetting thefont-size
correctly changes it to40px
, but the value in the font-size input box does not update.Why does this discrepancy occur, and how can I ensure that the style manager reflects the class style values?
Beta Was this translation helpful? Give feedback.
All reactions