[QUESTIONS] Devices panel appendTo
Question
Hi Everyone.
I manage to redesign the grapesjs editor by using appendTo on the styleManager, layerManager and blockManager on its own division. I also use the grapesjs-preset-newsletter. But the device panel is still stick on the editor workspace.

Is it possible to append on its own division? and I also notice. Some buttons is not showing.

I guess those buttons just not appended? im not sure. Can I also use appendTo option to append it to its own division? Please see my code below.
var editor = grapesjs.init({
container: '#gjs2',
height: '500px',
fromElement: true,
storageManager: {type: 0},
plugins: ['gjs-preset-newsletter'],
layerManager: {
appendTo: '#layers-container'
},
blockManager: {
appendTo: '#blocks'
},
styleManager: {
appendTo: '#style-manager-container'
},
selectorManager: {
appendTo: '#selectors-container'
},
traitManager: {
appendTo: '#traits-container'
},
panels: {
defaults: [{
id: 'layers',
el: '#layers',
resizable: {
tc: 0,
cr: 1,
bc: 0,
keyWidth: ''
}
},
{
id: 'styles',
el: '#style-manager',
resizable: {
tc: 0,
cr: 0,
cl: 1,
bc: 0,
keyWidth: ''
}
}]
}
});
I base on the codepen example by the author.
Thank you guys. I hope someone can help me on this.
Answers (2)
Device buttons are inserted by grapesjs-preset-newsletter, you have to move them on load via JS
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 #1645
[QUESTIONS] Move panel to the left
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 kn...
Issue #457
Two Quick Questions
Hi @artf 1) I have my editor templates like this : I want to change the alignment and also add a back button to the corner left like this o...
Issue #1987
[QUESTIONS] Create toolbar in bottom
can I make a new toolbar that is located at the bottom (as shown by the cursor) when selected component? Thank's
Issue #1347
blocks are not showing in different tabs and its showing in one tabs
Hi @artf , I am using your plugin and i want to use blocks in different tabs like blocks,widgets and grids but when i am using the properti...
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.