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

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.32编辑器空白
如何关闭审核功能?
希望管理员能共享一下官网上最新的站外调用插件
求现有编辑器改为markdown的方法?一起众筹一款好编辑器吧
建议:wecenter的编辑器可以参考一下“简书”
SAE中3.17版本点击下载附件,IE无法下载并跳转“无法显示此页”,chrome下载打开,但是还是显示“无法显示此网页”,如何解决?
如何修改手机版赞的位置居中和加大?
官网3.1.0编辑器有BUG

推荐内容

谁能把wc的编辑器改改?
在文本编辑器里编辑的文档段前加了2个全角空格,粘贴到WECENTER里被自动删除
编辑器不能插入图片
在plugins文件夹下加入aws_tinymce文件夹后 如何启用该编辑器插件
反馈编辑器的三个问题,希望能改进。
发布问题、文章中的图片如何居中呢?
官网的一个关于话题中精华的bug
编辑器大家觉得有什么问题吗?
哎!折腾了半天,编辑器还是没改出来,看看我改的编辑器效果吧。
请问如何更换编辑器呢?