Make block manager default open panel?
Question
I tried this code:
// Show blocks by default, not styles
editor.Panels.getButton('views', 'open-sm').set('active', false)
editor.Panels.getButton('views', 'open-blocks').set('active', true)
It works but doing this will hide the device selector in the top left for some reason.
Answers (3)
try just with
editor.Panels.getButton('views', 'open-blocks').set('active', true)
but put it after the render (if you're using autorender: false)
Ah, setting it after render works great. Thanks
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 #538
Clicking component always opens styles first, even if I override
When I click the component, I want the traits to open Clicking a component opens the styles. Clicking it one more time will finally open op...
Issue #466
Disable button
Hi, I added a new button in Options Panel and now I'm trying to make it disable while a given criteria is not ok. For now, I tried to use t...
Issue #1602
[QUESTIONS] - Panel visibility
Hey @artf , How have you been? Quick question: a Panel has a property called visible. I'm trying to set it to false but nothing happens. I'...
Issue #542
Calling render() on PanelManager breaks style manager
In lieu of #540, I'm trying to manually remove a button from the options panel, with this: This works ok, the button goes away, but the pnm...
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.