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

I want the style manager to move below the custom panel that is in the right.
Thank you!
Answers (3)
Is there a proper way via grapesjs that I just don't know or it have to be overriden via css
.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>
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.
Issue #2586
[Question]: How update style manager panel using few devices and custom css class
There is a custom class added to simple grapesjs project: If there is no devices and user adds the class into the selectors field Settings...
Issue #3339
Question: How to add different aspect ratios to mobile devices in the device manager.
We are working on a cms system that uses grapes js. We came up with a condition where we couldn't add aspect ratio in the "mediaCondition"...
Issue #945
[QUESTION / FEATURE REQUESTS] : How to translate grapejs
Hi, I check the sources but it didn't seems to have a centralized language file (one per plugins per example) but multiple places where wor...
Issue #3331
Custom Asset Manager
Hi @artf I followed the documentation to make new type of asset manager here ( https://codepen.io/abhi_punk81/pen/MWbWzaq) I've created new...
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.