grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

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

Open faizansaiyed opened this issue 8 years ago • 3 comments

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.

faizansaiyed avatar Mar 21 '18 06:03 faizansaiyed

https://github.com/artf/grapesjs/issues/195 https://github.com/artf/grapesjs/issues/473 https://github.com/artf/grapesjs/issues/444 https://github.com/artf/grapesjs/issues/66

Here are some solutions, please search next time before open an issue.

chapterjason avatar Mar 21 '18 07:03 chapterjason

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

faizansaiyed avatar Mar 22 '18 02:03 faizansaiyed

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.

lock[bot] avatar Sep 17 '19 20:09 lock[bot]