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

ckeditor如何调用全编辑器?

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

查看全部 1 个回答

苏逸融 核心会员 用户来自于: 美国
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 人关注

相关问题

3.1.1版 Markdown编辑器做了哪些修改啊?
如何修改视频和图片的显示尺寸及跟下文的间距?
我希望未登录情况下,首页地址不带explore的后缀,如何实现
如何在首页显示问题的内容摘要和图片,目前只显示文章的而且极不美观
如何将话题(也就是标签)设置成文章title
如何将登录页面设置成默认首页?
文章有回复时如何自动更新到发现页第一行?
微信?如何调用?
程序如何授权?商业用户都会获得哪些支持?
JS调用 无法使用

推荐内容

Markdown编辑器编辑按钮没有了?2.5.6
编辑器换行后中文输入错误问题还没解决吗?
由于修改了编辑器,导致之前的问题中贴入的代码丢失
编辑器中的按钮在哪里修改?想删除代码和视频的按钮
新的编辑器中的那条时隐时现的红线做什么用的?
快换编辑器吧,受不了了!
请问编辑器如何插入插件?
编辑器什么时候能重新支持下markdown?
anwsion问答程序的第一个插件
发起问题或文章没有编辑器,只有普通文本框