Grapesjs: [QUESTION] How to load external CSS file into Grapes Editor?

Created on 21 Mar 2018  路  3Comments  路  Source: artf/grapesjs

Hey,
During my editor = grapesjs.init(), I want to load an external CSS file into the canvas using @import url(...). So when I use my custom components which are using those external CSS stylings, should render properly. Also, those URL should include in editor.getCss().
How can I do that?
Thanks in advance.

outdated

Most helpful comment

All 3 comments

Thanks for the help. This works perfectly. I tried searching issues with @import query, my bad.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SylvainBigonneau picture SylvainBigonneau  路  3Comments

YashPrince picture YashPrince  路  3Comments

kawika-connell picture kawika-connell  路  3Comments

andre2 picture andre2  路  3Comments

ryandeba picture ryandeba  路  3Comments