我已经下载了colorbutton插件。并将插件放入ckditor插件文件夹中。在config.js我激活了我的插件。但是当我把激活码放在confiq.js文件中时,整个ckeditor从页面中消失了。当我删除这个“config.extraPlugins ='colorbutton';”从代码ckeditor出现时,isert它消失了,我需要ckeditor中的文本coloroption。
以下是config.js
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For the complete reference:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
// The toolbar groups arrangement, optimized for two toolbar rows.
config.toolbarGroups = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
{ name: 'links' },
{ name: 'insert' },
{ name: 'forms' },
{ name: 'tools' },
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'others' },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ] },
{ name: 'styles' },
{ name: 'colors' },
{ name: 'about' }
];
// Remove some buttons, provided by the standard plugins, which we don't
// need to have in the Standard(s) toolbar.
config.removeButtons = 'Underline,Subscript,Superscript';
// Se the most common block elements.
config.format_tags = 'p;h1;h2;h3;pre';
// Make dialogs simpler.
config.removeDialogTabs = 'image:advanced;link:advanced';
var path12 = CKEDITOR.basePath; config.filebrowserBrowseUrl = path12 +'image / browse.php?type = files'; config.filebrowserImageBrowseUrl = path12 +'image / browse.php?type = images'; config.filebrowserFlashBrowseUrl = path12 +'image / browse.php?type = flash'; config.filebrowserUploadUrl = path12 +'image / upload.php?type = files'; config.filebrowserImageUploadUrl = path12 +'image / upload.php?type = images'; config.filebrowserFlashUploadUrl = path12 +'image / upload.php?type = flash'; config.extraPlugins ='colorbutton'; };