Issue #2687Opened March 27, 2020by christianbalderrama0 reactions

[Question] How to append style manager to custom panel

Question

I would like to append the whole style manager module to a panel? I have been digging up the docs for the past 2 days and couldn't find a proper example for this one.

I have initialized the GrapeJS Editor panel as empty array to remove all the panels and have a custom panel that is provided in the example as well

For now it looks like this: image

I want the style manager to move below the custom panel that is in the right.

Thank you!

Answers (3)

christianbalderramaMarch 27, 20200 reactions

Is there a proper way via grapesjs that I just don't know or it have to be overriden via css

christianbalderramaMarch 27, 20200 reactions
.panel-top {
  padding: 0;
  width: 100%;
  display: flex;
  position: initial;
  justify-content: center;
  justify-content: space-between;
}
.panel-top-actions {
  position: initial;
}
        <Row>
          <Col xs={10} md={10} lg={10}>
            <div id={this.state.id} ref={ref} style={{height}}>
              {children}
            </div>
          </Col>
          <Col xs={2} md={2} lg={2}>
            <div className="panel-top">
              <div className="panel-top-actions"></div>
            </div>
          </Col>
        </Row>
pouyamiralayiMarch 27, 20200 reactions

Hi @christianbalderrama Inside your initialization config:

editor = grapesjs.init({
    //...
    styleManager: {
        appendTo: '#style-mgr',
        sectors:[
        //...
        ]
    }
)}

for the sectors, here is the sectors used inside demo. Cheers!

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.