Plugins ckeditor中的插件激活
我已经下载了colorbutton插件。并将插件放入ckditor plugin文件夹。在config.js中,我已经激活了我的插件。但是当我把激活码放在confiq.js文件中时,整个ckeditor从页面上消失了。当我删除这个config.extraPlugins='colorbutton'时;从代码ckeditor在isert时显示它消失,我需要ckeditor中的文本颜色选项 下面是config.jsPlugins ckeditor中的插件激活,plugins,ckeditor,Plugins,Ckeditor,我已经下载了colorbutton插件。并将插件放入ckditor plugin文件夹。在config.js中,我已经激活了我的插件。但是当我把激活码放在confiq.js文件中时,整个ckeditor从页面上消失了。当我删除这个config.extraPlugins='colorbutton'时;从代码ckeditor在isert时显示它消失,我需要ckeditor中的文本颜色选项 下面是config.js CKEDITOR.editorConfig = function( config )
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';
}; 我假设您没有正确的文件夹结构。你把插件放在正确的文件夹里了吗