[QUESTION] - CssComposer - removes unused classes
Question
hi @artf ,
I import a html , using import from grapesjs-preset-newsletter, with some css classes inside the <style> tag.
After the import, when I call editor.getCss(), some classes that I added before are missing now.
I checked that those css classes are not been used anywhere.
QQ: The CssComposer module removes the unused css classes?
Answers (3)
QQ: The CssComposer module removes the unused css classes?
Yeap
Nice, thanks!
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.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #948
[Question] Grapejs import allow body class
I've imported full html string include head, body tag, and body tag has some classes. When I use editor.getHtml() => I can't get body tag....
Issue #1877
[FEATURE REQUEST] Custom styles that add/remove custom classes?
Currently, all the style manager values that you change for an element simply update a <style> tag inline in the HTML. Is it possible to ch...
Issue #1699
[BUG] Link elements are not copyable/deletable
In the editor, if we have link element with some classes, the editor does not allow to copy/delete the element. GrapesJS version: v0.14.50S...
Issue #1059
[Question]: Load html content from a file dynamically
Hi, I need to load content from a html file from server onto editor after or while initializing editor. How this can be implemented? HTML w...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.