2013-10-16 22 views
0

我有这样的配置:CKEditor的告诉我双风格工具栏

$(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' ] }, 
     ] 
    }); 
}); 

但如果我尝试在“样式”设置execatly项目,CKEditor的告诉我的风格双工具栏: enter image description here

+0

您是否尝试过简单地删除它们就像你在最后一组做工具栏组应该只定义组,而不是项目?删除此部分的含义:',项目:['Font','FontSize']' – Nenotlep

回答

0

你眼花缭乱toolbarGroupstoolbar设置。

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

替换这条线:

{ name: 'styles' },