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

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

相关问题

如何理解话题、分类和专题逻辑关系?后台结构和操作我都不懂
如何修改butket
如何升级最新版本
全部问题列表调用 最佳回复(已采纳回复)
微信多图文如何排序?
如何配置apache。。。
url中的问号是什么原因?如何去掉?
Markdown编辑器编辑按钮没有了?2.5.6
编辑器什么时候能支持插入视频和地图标注?
建议:别再折腾编辑器了,markdown已经完全可以排出优雅的版面

推荐内容

今天看到新版中没有编辑器功能,心里想说几句
编辑器的颜色和样式看起来和整站非常不搭
编辑器能不能支持分数、平方、根号啥的
能否让编辑器默认一些简单的Html,让markdown编辑器排版更加优雅
弱弱的问一下,编辑器上传图片为什么还是用附件按钮?
新版的编辑器加载明显延迟这个还能改进吗?
新的编辑器中的那条时隐时现的红线做什么用的?
主要是可视化编辑器 可视化在哪里 能不能给我截个图看看
3.6安装没有发文章的编辑器阿
在侧边栏调用推荐的帖子或者文章的列表