Issue #2712πŸ’¬ AnsweredOpened Apr 15, 2020by ahmeds632 reactions

No flex option in the side panel

Quick answerby Ju99ernaut❀ 1

The gjs-preset-webpage plugin by default has no flex section so you have to write your own customStyleManger

Read full answer below ↓

Question

I am using grapesjs plugins to build the side panel options and different elements. I am looking for this flex section in the side panel but there is none. Is there any option that I need to enable for this any of the following plugins that I am using? gjs-preset-webpage, grapesjs-lory-slider, grapesjs-tabs, grapesjs-tooltip, grapesjs-custom-code, grapesjs-typed, gjs-blocks-flexbox I tried adding the customStyleManager in gjs-preset-plugin but that overrides all the default option that this plugin comes with I have to manually write all those options in customStyleManager I don't want to do t...

Answers (3)

Ju99ernautβ€’ Apr 16, 2020

The gjs-preset-webpage plugin by default has no flex section so you have to write your own customStyleManger

ajumellβ€’ Apr 18, 2020

Change the styles/index.js with the content given below. Also update the styles as required export default (editor, config) => { const sm = editor.StyleManager; const csm = config.customStyleManager; const oConfig = [ { name: 'General', buildProps: ['float', 'display', 'position', 'top', 'right', '...

gunslingorβ€’ Aug 24, 2020

sm.getSectors().reset(csm) Is what fixed it for me, I assume oConfig would work too. I don't understand why this is necessary... or more specifically, why the demo gets away with NOT doing it (unless I'm missing it). I certainly seem to be rolling thru the common errors as I learn this platform, lo...

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.