Closed mdkbdg closed 1 year ago
Aha!
I just found it and it now works. Here is how
...
autorender: false
...
editor.on('load', function(){ editor.Panels.getButton('views', 'open-blocks').set('active', true) });
editor.render();
Might help someone
Trying to make "Open Blocks" as default panel when it is open the very first time.
Refering to https://github.com/artf/grapesjs/issues/454
But when I add the above line, the panel is empty. 'autorender' is not defined which supposed to have its default value
How to make Open Blocks as default opened panel?
What is supposed to look :![image](https://user-images.githubusercontent.com/31134612/108840044-64ecf980-7608-11eb-87c5-c5cf7b579813.png)
How it look now :![image](https://user-images.githubusercontent.com/31134612/108840034-60c0dc00-7608-11eb-8d96-e28ee1e0d6ee.png)