CrazyStack
CrazyStack

Reputation: 169

ckeditor show me double style toolbar

I have this config:

$(document).ready(function(){  
    CKEDITOR.replace('editor', {
        language : 'ru',
        toolbarGroups : [
            { name: 'history',   groups: [ 'redo', 'undo' ] },
            { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
            { name: 'paragraph',   groups: [ 'list', 'indent', 'align' ] },
            { name: 'links' },
            { name: 'styles', items: [ 'Font', 'FontSize' ] },
        ]
    });
});

but if i try to set execatly items in 'styles', ckeditor show me double toolbar of styles: enter image description here

Upvotes: 0

Views: 134

Answers (1)

Reinmar
Reinmar

Reputation: 22023

You confused toolbarGroups with toolbar setting. Toolbar groups should define only groups, not items like you do in the last group:

{ name: 'styles', items: [ 'Font', 'FontSize' ] },

Replace this line with:

{ name: 'styles' },

Upvotes: 0

Related Questions