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

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

相关问题

bug:图片title和alt,调用的字段写错了
站长自动推送代码如何安装使用?
首页调用图片轮转,怎么弄的?求指教
编辑器无效了,最新版本的。 怎么办
谁知道自定义菜单菜单参数类型 CATEGORY 和 FEATURE ID 怎么调用?下面这个如何设置?
文章评论与私信如何更换为全功能编辑器
如何让非登录用户 和 已登录用户 到相同界面?(折腾1夜了!)
wecenter官方编辑器能不能好好搞
wccenter如何联接子站
wecenter的编辑器什么时候才支持本地上传图片?下一版本会支持吗?

推荐内容

不知道wecenter能否参考这个编辑器改进一下呢,现有的编辑器功能太不方便了
真的不需要编辑器!
怎么取消编辑器那个插件?
妈妈再也不担心我编辑器功能不够用了。。。。。。。。。。
如何在编辑器上加上更改文字大小?
求升级编辑器使用UEditor等富文本编辑器,赞同的顶起
现有编辑器,如何在编辑时能解析BBcode。。。
今天再次发一表一下关于这套bug程序的建议。
说实话,建立官方换掉这个编辑器,编辑器加载的东西太多,一点都不优化
请问文章编辑器怎么调试和官方的一样