ckeditor中的插件激活 [英] plugin activation in ckeditor

查看:97
本文介绍了ckeditor中的插件激活的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了colorbutton插件.并将插件放入ckditor插件文件夹.在config.js中,我已经激活了我的插件.但是,当我将激活代码放入confiq.js文件中时,整个ckeditor都会从页面中消失.当我删除此"config.extraPlugins ='colorbutton';"时从代码ckeditor中发现,当isert它消失时,我需要在ckeditor中输入文本coloroption.

i have downloaded the colorbutton plugin. and put the plugin into ckditor plugin folder. in config.js i have activate my plugin . but when i put the activation code in confiq.js file the whole ckeditor is disapper from the page. when i remove this "config.extraPlugins = 'colorbutton';" from the code ckeditor appear when isert it disapper and i need the text coloroption in ckeditor.

下面是config.js

the follwing is the 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'; };

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'; };

推荐答案

我认为您的文件夹结构不正确.您是否将插件放置在正确的文件夹及其内容中?

I would assume you do not have the correct folder structure. Did you place the plugin in the correct folder and its contents?

plugin_sdk_sample_1

这篇关于ckeditor中的插件激活的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆