Get all the style value by ID
@artf I want to get all the style associated with model selected by ID after save the template and reload and re init the editor.
But I can not get all the style value of the selected model.
But in css there are 2 css definition for that ID

I want to know How can I get all the style value applied for a ID either it is 2 time or multiple time. Please also tell me how to prevent css composer to add new style tag for same ID after page reload or editor re-init so that it will not create new style and it only update the previous style.
editor.getCss(); -> will give you all the CSS, is up to you to find what you need.
comp = editor.getSelected(); const html = comp.toHTML(); -> selected comp html const css = editor.CodeManager.getCode(comp, 'css', {cssc: editor.CssComposer}); -> selected comp CSS
@YashPrince check the API https://grapesjs.com/docs/api/css_composer.html
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.