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

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

相关问题

编辑器的【项目列表】 无序的似乎不支持二级列表啊?
云环境下file_exists函数如何替换呢?
哎!折腾了半天,编辑器还是没改出来,看看我改的编辑器效果吧。
问题列表前面的用户图像如何去掉?
编辑器问题,一直很好奇
微信开放平台如何获取token?
动态调用的内容怎么修改。
编辑器无法使用
问答的评论没有编辑器,如何开启问答的评论里面的编辑器?
WC搭建的问答社区,用户20W,邮件通知如何优化

推荐内容

强烈建议官方站在小白用户使用编辑器的体验来完善编辑器
手机版如果也有编辑器就好啦,现在只有插入图片一项功能。
官方能不能开发一个QQ截图后,直接粘贴的编辑器?
wecenter支持短视频发布吗?
产品经理,请教一个问题~
DEV 20130125 高级编辑器支持视频网站列表
后台调用了 CKeditor ,编辑之后前台调用无样式
官方考虑换一款编辑器不,推荐vditor
编辑器直接粘贴代码,预览正常,发布后不能解析
关于编辑器的问题和建议