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

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

相关问题

文章列表在标题下方有调用话题tag,怎么在explore列表页也调用?
3.6安装没有发文章的编辑器阿
求助:发起文章时,弹出“网络链接异常”是什么原因?如何解决问题?
QQ登录回调地址应该如何填写啊?
我发现了一个bug,不知道如何提交?
17K编辑器插件,欢迎童鞋们测试
编辑器看不到按钮啊,赞的按钮也看不到
如何置顶某个文章或者问题
有没有解决列表页调用图片的方法呢?! 附件调用和站外调用都不行
官方人员请进来看看,编辑器方面的建议。

推荐内容

编辑器的问题
编辑器终于改版了,
妈妈再也不担心我编辑器功能不够用了。。。。。。。。。。
test编辑器
编辑器粘贴问题
请问怎么修改代码的标记
编辑器教学文字篇
微信复制过来的东西,发布到WC不会换行。
正文内容flash问题
编辑器里面字体颜色,背景颜色如何设置?