Issue #1043Opened April 15, 2018by leobeal0 reactions

[Question] Should I always save the CSS? (and other questions)

Question

First, thanks a lot for this! It's an amazing piece of software.

I've been playing around with grapesjs, and few questions popped up, would appreciate if you guys could help me.

  1. For my use case, I would not want to save the css, I would prefer have it already defined and let my users just play around with the existent options. Although, I've seen that, let's say, when inserting a map, a new specific class is created for that element, so I would need to export the css as well. any recommendation on this? Should I always save the css as well?

  2. I could find the base blocks for some elements in the examples provided (webpage demo and newsletter demo, thanks!) but I could not find where the grids are set. I would like to avoid the grid resize (not sure why it's even allowed :) ) Any way to do that?

  3. When using the grapesjs-blocks-basic I was able to set the wanted blocks, now I am using the gjs-preset-webpage the bellow does not seem to work

pluginsOpts: {
    'gjs-preset-webpage': {
    blocks: ['column1', 'column2', 'column3', 'column3-7', 'text', 'image']
    }
 },

thanks again!

Answers (2)

artfApril 19, 20180 reactions

For my use case, I would not want to save the css, I would prefer have it already defined and let my users just play around with the existent options. Although, I've seen that, let's say, when inserting a map, a new specific class is created for that element, so I would need to export the css as well. any recommendation on this? Should I always save the css as well?

So this mean you don't want the user to apply styles on components, in that case just hide the style panel

I could find the base blocks for some elements in the examples provided (webpage demo and newsletter demo, thanks!) but I could not find where the grids are set. I would like to avoid the grid resize (not sure why it's even allowed :) ) Any way to do that?

Grids are from grapesjs-blocks-basic and you can find their implmentation here

When using the grapesjs-blocks-basic I was able to set the wanted blocks, now I am using the gjs-preset-webpage the bellow does not seem to work

Check better the options, you have to pass them via blocksBasicOpts key

lock[bot]September 17, 20190 reactions

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.