Need help adding style attributes like width and height to the table element while editing style properties using Style Manager #4710
-
With the help of Grapesjs we are developing a newsletter designer with HTML tables instead of divs. Even though outlook client doesn't support CSS styles for table elements. Since it doesn't support CSS style we plan to add width and height as attributes. But currently, while modifying the width and height properties in the style manager it's appending as a CSS style instead of direct width and height attributes for HTML tables. Need some solution to achieve this. Thanks!
Expected:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'd suggest following what the grapesjs-preset-newsletter is doing with the export code by relying on something like juice to inline styles (by default juice is also handling attributes for the tables) |
Beta Was this translation helpful? Give feedback.
I'd suggest following what the grapesjs-preset-newsletter is doing with the export code by relying on something like juice to inline styles (by default juice is also handling attributes for the tables)