Is it possible to remove "views" of editor Panel
@anand-gopinath - this code works for me in a plugin: editor.Panels.removeButton("views", "open-layers"); It doesn't seem to work for me after the editor has fully loaded...I suspect that it needs to get removed before the view is rendered, but I haven't confirmed that.
Read full answer below ↓Question
I wish to remove/hide the below mentioned "view" from the Panel. Is it possible via API or I need to externally hide using css ?

editor.Panels.getPanel("views").attributes.buttons.models[2].attributes.visible = false;
Answers (3)
@anand-gopinath - this code works for me in a plugin: editor.Panels.removeButton("views", "open-layers");
It doesn't seem to work for me after the editor has fully loaded...I suspect that it needs to get removed before the view is rendered, but I haven't confirmed that.
@anand-gopinath In case it's helpful, here's some code that I'm using to reorder those buttons (this also probably needs to run in a plugin):
var panelManager = editor.Panels;
// get the buttons
var styleManagerButton = panelManager.getButton("views", "open-sm");
var layersButton = panelManager.getButton("views", "open-layers");
var blocksButton = panelManager.getButton("views", "open-blocks");
// remove the buttons
panelManager.removeButton("views", "open-sm");
panelManager.removeButton("views", "open-layers");
panelManager.removeButton("views", "open-blocks");
// add the buttons back in a custom order
panelManager.addButton("views", blocksButton);
panelManager.addButton("views", styleManagerButton);
panelManager.addButton("views", layersButton);
Thanks Ryan, I'll add a new listener, in the next release, which should fix the issue
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1990
[QUESTIONS] need to call method before remove the html component
Hi, I need to call the method before remove the HTML component. how can I do that calling method like editor.on('block:drag:stop', function...
Issue #588
Editor UI changes
I would like to make the editor like the photo above. However, I can't find the css for the background or the panels. Any help provided wou...
Issue #1597
Can we add resizable property in gjs-layer-manager frame?
hi @artf Is it possible to add resizable property on the frame of layer-manager as screen shot below i want to add dynamic resizable proper...
Issue #1539
How and where to define form's action in grapesjs
Hello All, how can i get data from forms in grapesjs. i have droped a form on canvas as u can see that below . so there is an action proper...
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 →Related tutorials
In-depth guides on the same topic.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.