[QUESTIONS] Move panel to the left
Question
Hi grapesjs team,
I am trying to move BlockManager, StyleManager, TraitManager etc to the left.
I have tried to use appendTo but I don't know why the default panel still shows up.

Is it to possible to move all things within the right sidebar to the left?. Or append them to the new html element and remove the default one.
<div class="row">
<div class="column" style="flex-basis: 300px; background: #463a3c; color: #fff; text-align: center">
Block Manager
<div id="blocks" class="column"></div>
Style Manager
...
</div>
<div class="column" style="flex-basis: calc(100% - 300px)">
<div id="canvas" style="height:0px; overflow:hidden">
</div>
</div>
</div>
var editor = grapesjs.init({
blockManager: {
appendTo: '#blocks'
},
styleManager: {
appendTo: '#style-manager-container'
},
selectorManager: {
appendTo: '#selectors-container',
},
traitManager: {
appendTo: '#traits-container',
},
})
Sorry @artf if my question is too basic, but I have been digging to the docs and couldn't find any clue.
Updated
I found a way to remove the default panel by giving an empty array to the value of defaults property
panels: {
defaults: []
},
But it's just removing the panel, not the layout. It looks like this.

I managed to remove the brown layout using CSS.
.gjs-cv-canvas {
/* remove the right gap */
width: 100%;
/* remove the top gap */
height: 100%;
top: 0
}

I am still wondering whether I am doing it right or not. Please enlighten me
Answers (3)
Correct, as you see I'm doing the same here: https://grapesjs.com/docs/getting-started.html#start-from-the-canvas
Thank you for confirming
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 #1450
[QUESTIONS] Devices panel appendTo
Hi Everyone. I manage to redesign the grapesjs editor by using appendTo on the styleManager, layerManager and blockManager on its own divis...
Issue #1564
Css/fonts/icons issues
Hi, i have an CSS issue with my project GrapesJS and i don't know why... I try to do the tuto and i haven't icons. Other issue, i can't spl...
Issue #1843
Class on different states are not being applied to those states.
I'm trying to apply a class on hover of a component and the class is being applied but not on hover, it applies with normal state. Please l...
Issue #1237
Before you drag and drop the image,there was nothing in assetManager
and I don't know how to set the backgroundImage
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.