基本ckeditor中的“source”按钮未显示

时间:2016-06-29 13:12:36

标签: ckeditor

我已经下载并安装了4.5.9版的Basic软件包,但是没有显示Source按钮。这是我的配置文件:

CKEDITOR.editorConfig = function( config ) {
    // Define changes to default configuration here.
    // For complete reference see:
    // http://docs.ckeditor.com/#!/api/CKEDITOR.config

    // The toolbar groups arrangement, optimized for a single toolbar row.
    config.toolbarGroups = [
        { name: 'document',    groups: [ 'Source', 'mode', 'document', 'doctools' ] },
        { name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
        { name: 'editing',     groups: [ 'find', 'selection', 'spellchecker' ] },
        { name: 'forms' },
        { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
        { name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
        { name: 'links' },
        { name: 'insert' },
        { name: 'styles' },
        { name: 'colors' },
        { name: 'tools' },
        { name: 'others' }
    ];

    // The default plugins included in the basic setup define some buttons that
    // are not needed in a basic editor. They are removed here.
    config.removeButtons = 'Cut,Copy,Paste,Undo,Redo,Underline,Strike,Subscript,Superscript';

    // Dialog windows are also simplified.
    config.removeDialogTabs = 'link:advanced';
};

有人可以告诉我,我做错了吗?

提前感谢你。

1 个答案:

答案 0 :(得分:0)

正如您在Source code editing表中所看到的,

Compare presets在Basic包中不可用。您需要先将Source Editing Area插件(或Source Dialog(如果用于内联编辑)添加到您的构建中)。 Use CKBuilder为此。

相关问题