2017-02-16 69 views
0

今天我想在我们的PIM系统的CKEDITOR中添加一个新的插件。 因此我加载了CKEEditor的“Link”插件。CKEditor的新插件(链接)

第一步 - 我包括以下路径下的插件,我CKE的安装:

CKEditor的\ JS \ CKEditor的\插件\链接

后,我试图改变我的“ ckeeditor.Config.js”

它看起来像以下配置:

var CKEDITOR_CONFIGS = (function() { 


    var module = {}; 

    var configs = { 

    'default': { 
    toolbar: [ 
     [ 'Cut','Copy','Paste','PasteText','PasteFromWord','Undo','Redo'], 
       ['NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv', 
      '-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], 
       ['Link','Unlink','Anchor'], 
       ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'], 
     ['Bold','Italic','Underline','Strike','Subscript','Superscript', 
       'Source','Save','NewPage','DocProps','Preview', 'Print','-','Templates', 
      'SpellChecker', 'Find','Replace','-','SelectAll','-','Scayt'], 
     ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 
     'HiddenField'], 
     ['RemoveFormat','-','BidiLtr','BidiRtl'], 
     ['PageBreak','Iframe','Styles','Format','Font','FontSize', 'TextColor','BGColor', 
       'Maximize', 'ShowBlocks','-','About'] 
     ] 

    } 
    }; 

    module.getConfiguration = function(args) { 
    return configs['default']; 
    }; 

    return module; 


}()); 

通过阅读一些柱我发现我有以下代码添加到配置数据

config.extraPlugins =“链接”;

谁能告诉我wherer我必须添加“config.extraPlugins =‘链接’; 我已经尝试了在代码中的许多地方,但没有任何成功

让别人相同?问题我忽略了一些提前 添

+0

没有人知道吗?如何解决问题? – Tim

回答

0

直接在config.js配置可以

由于修改这个代码:? CKEDITOR.editorConfig =功能(配置)

你少一个参数,加上这个参数,然后配置: Config.extraPlugins =“链接”

我也有一个自定义插件,就是这件事。