Issue #1450Opened September 22, 2018by besingamkb0 reactions

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

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

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)

artfSeptember 29, 20180 reactions

Device buttons are inserted by grapesjs-preset-newsletter, you have to move them on load via JS

lock[bot]September 29, 20190 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.