ckeditor中的插件激活

纳西尔

我已经下载了colorbutton插件。并将插件放入ckditor插件文件夹。在config.js中,我已经激活了我的插件。但是,当我将激活代码放入confiq.js文件中时,整个ckeditor都会从页面中消失。当我删除此“ config.extraPlugins ='colorbutton';”时 从代码ckeditor出现,当isert它分解器出现时,我需要在ckeditor中输入text 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'; };

加里

我假设您没有正确的文件夹结构。您是否将插件放置在正确的文件夹及其内容中?

plugin_sdk_sample_1

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章