[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.
-
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?
-
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?
-
When using the
grapesjs-blocks-basicI was able to set the wanted blocks, now I am using thegjs-preset-webpagethe bellow does not seem to work
pluginsOpts: {
'gjs-preset-webpage': {
blocks: ['column1', 'column2', 'column3', 'column3-7', 'text', 'image']
}
},
thanks again!
Answers (2)
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
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.
Issue #886
[HELP WANTED]: questions about some customization.
Hey Guys, first thank you very much for your work, this project seems really promising. I have a few question for a website i'm building. I...
Issue #1086
[Question] What is the way to generate component with external javascript?
It seems I should not ask such question, but I did spend a lot time to search, could not get a good guide on this. I want to create a FB bl...
Issue #1822
[QUESTION] - Add style sector for specific Css rule
Hey @artf , COuld you give your help on this one? I want to disable the user to able to select the wrapper block (body) but I still want to...
Issue #916
[Question] why do layers not have element tag name?
I'm playing around with grapes' internals because I would like to contribute in the future. Most of my interest is in making it worth with...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.