Add 'inline-flex' to display selector in Style Manager
For anyone looking for a solution, I didn't manage to do this by modifying the StyleManager options So here is what I did
Read full answer below āQuestion
What are you trying to add to GrapesJS? Display style inline-flex. Description: Currently the display selector of the Style Manager has only flex as option but same as block and inline-block it is useful to have inline-flex. When I try to add it manually with this (hack?): I get a result but there are many conditional operators triggered by flex that won't trigger on inline-flex like for example the Style Manager "Flex" section will not appear. Is there an alternative at the latest version? [ ] Yes (descripe the alternative) [x] No Is this related to an issue? [ ] Yes (Give a link to the issu...
Answers (4)
For anyone looking for a solution, I didn't manage to do this by modifying the StyleManager options So here is what I did
Sorry @fq-selbach but this is something that could be handled via plugins, there is no need to have this logic in the core library
@artf ok, but can you tell me please how I can control the "Flex" category of the Style Manager because the logic of showing/hiding it seems to be hard-coded :-/ I can add 'inline-flex' to the "Display" selector with a plugin ... but it will never show the "Flex" category when its selected. Alterna...
Thanks for reporting this, @fq-selbach. Great question about FEAT: Add 'inline-flex' to display selector in Style Manager. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for the on() event listene...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #6365
Style Manager Fails to Interpret Descendant Selectors Correctly
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Version 131.0.6778.205 Reproducible...
Issue #3294
FEAT: Adding options to properties list array in style manager
Hi, How can I add buildProps to properties list such that when an option is selected, the properties of that option will be displayed An ex...
Issue #3280
FEAT: Renderless
What are you trying to add to GrapesJS? I try to styling GrapesJS and positioning its elements (panels, buttons, canvas, etc.), it's annoyi...
Issue #3525
FEAT: In Style Manager, Allow Requiring the Default Setting
What are you trying to add to GrapesJS? The CSS property float only makes sense for position: static; elements, which happens to be the def...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins āPremium plugins ship with support, regular updates, and production-ready features ā save days of integration work.
Browse premium plugins āBrowse Plugin Categories
Jump directly to plugin category pages on the marketplace.