Skip to content
Discussion options

You must be logged in to vote

Responding to item number 2:
When i configure the commands with run and stop, it works properly!

Panels.addPanel({
        id: 'new-devices-panel',
        visible: true,
        buttons: [
            {
                id: 'device-desktop',
                active: true,
                togglable:true,
                className: 'btn-toggle-borders ',
                label: '<i class="fa fa-desktop"></i>',
                command:{
                    run: editor => editor.setDevice('Desktop'),
                    stop(editor){}
                }
            },
            {
                id: 'device-tablet',
                active: false,
                togglable:true,
                c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ronaldohoch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant