grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

QUESTION: Position of selector manager.

Open theSC0RP opened this issue 6 years ago • 1 comments

Hi, @artf. I was going through the getting started guide and the selector manager is placed below the style manager. Screenshot from 2020-11-23 13-40-46

How do I position the selector manager above the styles manager?

theSC0RP avatar Nov 23 '20 08:11 theSC0RP

As you can see from the example

selectorManager: {
    appendTo: '.styles-container'
  },
 styleManager: {
    appendTo: '.styles-container',

Both of them append the element inside the same container. You can simply create different containers

<div class="styles-container">
  <div class="styles-container-t"></div>
  <div class="styles-container-b"></div>
</div>
selectorManager: {
    appendTo: '.styles-container-t'
  },
 styleManager: {
    appendTo: '.styles-container-b',

artf avatar Nov 26 '20 22:11 artf