How to load externel css inside the canvas and apply changes on class instead of ID? #6443
Unanswered
Turzapodder
asked this question in
Q&A
Replies: 1 comment 1 reply
-
If you need it in the export, you just need to include/append your |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here I am again,
Continuously asking for help but no one helps at all (lol). but funny things is after i post here I can somehow figure out the solution for the problems i face.
Okay, I want to load external css form a strings or stylesheets. I know we can use:
Canvas: { styles: [<link to the stylesheet/>] }
but using this method the css doesn't load inside the css editor (editor.getCss()) or it doesn't reflect on the stylemanager. So, is there any other way to include them while rendering the editor?
and another thing is grapesjs applies styles using the component ID(even it has existing class), is there any way to make sure the styles changes are apply on classes?
Beta Was this translation helpful? Give feedback.
All reactions