GrapesJS / grapesjs

Free and Open source Web Builder Framework. Next generation tool for building templates without coding
https://grapesjs.com
BSD 3-Clause "New" or "Revised" License
22.36k stars 4.05k forks source link

GrapeJs framework breaks on adding external stylesheet #1807

Closed sakshigarg9 closed 5 years ago

sakshigarg9 commented 5 years ago

When i add my external stylesheet using

const editor = grapesjs.init({

    canvas: {
        styles: [
        'style.css',
        ]
    }
});

the grapesjs framework no more works. How can I have the style sheet as well as the grapesjs framework. Is this happening because some styles may not be compatible with GrapesJs?

artf commented 5 years ago

Well it's not that hard to break stuff with CSS, so yes, a bad written CSS (eg. using global selectors * or via tags like div, span { ... }) definitely can break the editor

lock[bot] commented 4 years ago

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.