Issue #1645Opened December 11, 2018by afdallah1 reactions

[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.

grapesjs

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. empty panel

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
}

screenshot at dec 11 13-38-44

I am still wondering whether I am doing it right or not. Please enlighten me

Answers (3)

afdallahJanuary 7, 20190 reactions

Thank you for confirming

lock[bot]January 7, 20200 reactions

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.