You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I'm doing this in my own plugin, then I'm getting the error TypeError: Cannot read properties of null (reading 'setName'). The reason is that editor.StyleManager.getSector('general') equals to null, although editor.StyleManager.getSectors() returns a meaningful result containing all used sections.
If I'm calling setName() after editor initialization, it runs through but shows no effect on the UI.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I want to change style manager section names. The documentation tells me that there is a method
setName()
for doing this. So I've tried this:If I'm doing this in my own plugin, then I'm getting the error
TypeError: Cannot read properties of null (reading 'setName')
. The reason is thateditor.StyleManager.getSector('general')
equals tonull
, althougheditor.StyleManager.getSectors()
returns a meaningful result containing all used sections.If I'm calling
setName()
after editor initialization, it runs through but shows no effect on the UI.Did someone ever did such a thing?
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions