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

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

相关问题

【未解决】老大,如何添加友链 和增加微博图标!
如何收集用户的QQ和手机号码?
编辑器教学文字篇
邀请好友加入社区功能如何分离?
‘问题’的这个页面的列表页如何调用图片?
如何把话题添加到导航,版本3.0
点击首页右上角管理员图标下的管理按钮后显示object not found,如何搞定?
超长文章字数不够,如何修改限制
如何让不能力也能直接提问回答
你如何看待万能自定义字段的功能?

推荐内容

时过半年我又回来了,我要的插件插入视频还是没如愿啊
现有编辑器,如何在编辑时能解析BBcode。。。
对于WCT,我最希望的是编辑器能有所改善
反馈:wangEditor目前发现的几个bug
建议,对回答修复编辑的时候也加上编辑器
哪个编辑器能解决这些数学公式吗?
编辑器不能支持空格?
编辑器的全屏模式是否搞反了?
官方发布的编辑器,在伪静态下不能用,求解决
现有的CKEditor 编辑器在360极速浏览器下无法贴入WORD文档内容,大家有没有遇到?