【问题标题】:ckeditor show me double style toolbarckeditor 显示双重样式工具栏
【发布时间】:2013-10-24 06:11:15
【问题描述】:

我有这个配置:

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

但如果我尝试在“样式”中设置项目,ckeditor 会显示样式的双工具栏:

【问题讨论】:

  • 您是否尝试过简单地删除它们?意思是删除这部分:, items: [ 'Font', 'FontSize' ]

标签: ckeditor


【解决方案1】:

您将 toolbarGroupstoolbar 设置混淆了。工具栏组应该只定义组,而不是像你在最后一个组中所做的那样:

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

将此行替换为:

{ name: 'styles' },

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多