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

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

相关问题

重装2.0 RC2后用户列表序号全部为“*”,新用户注册默认头像随机调用原有的用于头像
选择地址的选择框放在手机端报错,请问是少调用了哪个文件呢?
如何升级?能像Wordpress那样么?
最新版本3.1.3文章略缩图不显示,如何解决?
头像上传后,如何调用不裁切,也即原图的地址?
如何让游客发起话题?
微信回复的默认官方图片如何改
语言切换如何做?
如何置顶一个文章?
如何找新项目

推荐内容

WeCenter 2.1 显示BUG反馈
编辑器教学文字篇
关于编辑器吞代码的问题
时过半年我又回来了,我要的插件插入视频还是没如愿啊
这个系统界面很不错,风格也很喜欢,就是编辑器是不是简陋了点
视频不能调动了,怎么使用编辑器的html5 Video呢?
文本编辑器如何上传大的附件
编辑器的建议
如何让首页(发现)不显示通知,其他页面保留
说实话,建立官方换掉这个编辑器,编辑器加载的东西太多,一点都不优化