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

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 人关注

相关问题

富文本编辑器的反思
垂直类问答社区如何吸引优质用户
如何运营一个育儿网站
想在页头调用显示问题总数,header没有对应的main,怎么解决?
还没弄明白1.1编辑器怎么用,有谁指导一下?
建议加入简易编辑器
想给wecenter添加canonical标签,怎么调用当前URL
上传图片问题,请教如何查找问题。
如何添加多国语言
微信公众平台对接后,如何实现自动给关注用户发一条信息?

推荐内容

编辑器工具栏增加“删除线”怎么做?
谁能把默认编辑器替换成百度ueditor??
求CK编辑器替换Markdown 编辑器 的方法
编辑器的插入图片功能,如果需要插入图片数量比较多的话,是不是感觉很麻烦?
编辑器测试,看看各种效果
WeCenter 2.1 RC 1 BUG反馈
关于编辑器的建议
anwsion问答程序的第一个插件
编辑器不能支持空格?
WeCenter 3.0.0 编辑器问题:使用列表后最后会加空行(预览和最后的排版不一致)