该问题已被锁定!
6
关注
4215
浏览

ckeditor如何调用全编辑器?

AI智能回复搜索中,请稍后...

为什么被折叠? 0 个回复被折叠
苏逸融 核心会员 用户来自于: 美国
2015-04-01 16:28
ckeditor有个config.js的配置文件 你可以修改config.toolbar_Full这个配置,加上你想要的tool,我发现可以添加表情,还有config.forcePasteAsPlainText = true; 把这句的true改成false,你可以粘贴图片。Google相关教程多的是。  
CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here.
	// For complete reference see:
	// http://docs.ckeditor.com/#!/api/CKEDITOR.config

	config.toolbar = 'Full';

	config.toolbar_Full = [
		 ['FontSize','Cleanup','Bold','Italic','NumberedList','BulletedList', 'Blockquote', 'pbckcode', 'WecenterImage', 'WecenterAttach', 'WecenterLink', 'WecenterVideo', 'Maximize', 'RemoveFormat']
	]

	config.extraPlugins = 'pbckcode,bbcode,sourcearea,wecenterattach,wecenterimage,wecenterlink,wecentervideo,blockquote,font';

	config.resize_enabled = false;

	config.language = 'zh-cn';

	config.skin = 'bootstrapck';

	config.height = 250;

	// 过滤粘贴内容
	config.forcePasteAsPlainText = true;

	config.magicline_color = '#ccc';

	config.magicline_everywhere = true;

	config.fontSize_sizes = '16px;18px';

	// The default plugins included in the basic setup define some buttons that
	// are not needed in a basic editor. They are removed here.
	config.removeButtons = 'Cut,Copy,Paste,Undo,Redo,Anchor,Underline,Strike,Subscript,Superscript';

	// Dialog windows are also simplified.
	config.removeDialogTabs = 'link:advanced';

	config.removePlugins = 'enterkey,elementspath,tabletools,contextmenu';

};

关于作者

bbg 注册会员

这家伙很懒,还没有设置简介

问题动态

发布时间
2015-04-01 13:47
更新时间
2015-04-01 16:28
关注人数
6 人关注

相关问题

如何修改邮件发送的内容,如图所示
Discuz 至 1.1 转换程序 如何操作?也没有操作说明啊。怎么转换的方式呢?
如何把网站链接生成txt文件
如何让活动里面的标题和内容进入到搜索功能?给个思路。
微信输入帮助后调用的命令在哪里修改和添加
如何取消最佳回复?
WeCenter 调用插件,请问怎么用?
用户信息里的职业和院校信息选项如何去掉?
如何将即时通讯调用出来?
js调用插件下架了么??怎么找不到链接

推荐内容

说实话,我讨厌AW这个编辑器,你们认为呢?
3.1和3.11的区别在哪里
wc的编辑器是否可以替换成别的?
编辑器消失
正在新挖的一款编辑器,效果如图
不换编辑器不想用啊,多好的一程序啊
编辑器的颜色和样式看起来和整站非常不搭
为什么【问题】的评论框是完整的,而【文章】的评论框却是纯文本框?
###还是原来的编辑器吗?###
当前的编辑器怎么样?