Issue #859✓ SolvedOpened February 12, 2018by hibuno2 reactions

Change canvas style

Quick answerby hibuno2

Hi there, Forget it i solve this problem, just add event on change like this. Thank you

Read full answer below ↓

Question

Hi there,

I have some question about canvas style, in this case i have config like this.

var editor = grapesjs.init({
    container : '#gjs',
    canvas: {
        styles: ['/builder/css/builder-desktop.css']
    }
})

By default i use css with name builder-desktop.css for default canvas style. And then i want if i change Device Manager and choose mobile, i can change a canvas style to builder-mobile.css.

Thank you very much

Answers (2)

👍 Most helpfulhibunoFebruary 12, 2018

Hi there, Forget it i solve this problem, just add event on change like this. Thank you

lock[bot]September 18, 2019

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.