sector not found
Question
I try to add properties
styleManager.addProperty('decorations',{
name: 'Border Top width',
property: 'border-top-width',
type: 'integer'
})
I got warning 'decorations' sector not found
I try to debug with editor.getSector('decorations') and I got undefined
When I console editor.getSector('decorations') it has the decorations sector there.
Answers (1)
Probably you're placing your code before the decorations sector is loaded. Check the order of your plugins
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1781
add a font-size type prop
I'm trying to create a font-size type of property that I would like to add to the dimensions sector. Doing this: Getting the value and all,...
Issue #4413
StyleManager.addProperty , type: 'select' , Cannot read properties of undefined (reading 'replace')
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome Version 103.0.5060.53 (Official Build...
Issue #2951
typography sector not found
When using trying to add a font to the style manager, I use the following code: const prop = editor.StyleManager.getProperty('typography',...
Issue #2586
[Question]: How update style manager panel using few devices and custom css class
There is a custom class added to simple grapesjs project: If there is no devices and user adds the class into the selectors field Settings...
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.