-
I'm having an issue on my setup and on the grapesjs demo. When setting a margin or padding through the Dimension sector in the Style Manager, it sets all other values to zero, which I do not want. I would like to have only the property that I entered value to be saved, i.e. padding-top: 10px; rather than **padding: 10px 0 0 0;" My guess is because both padding and margin are set to detached=false, which writes CSS with the shorthand padding and margin. Where would I go to set this property on the margin and padding properties? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Not sure if it's the right way, but something you could try is changing the property after the style manager has been initiated. |
Beta Was this translation helpful? Give feedback.
Not sure if it's the right way, but something you could try is changing the property after the style manager has been initiated.
Something like:
editor.StyleManager.getProperty('dimension','margin').set('detached','true')