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

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

相关问题

新编辑器有个错误
话题如何实现类SF那样的集合,分组排列
WC如何防止机器群发站内私信?
编辑器怎么加超级链接?
原来阅读没内容是官方的问题,根本没调用!
wecenter如何设置301重定向?
请问wecenter整个框架是不是采用zend中MVC的方式?还是说只是个别功能,调用了zend模块?那么wecenter的框架是基于哪种规律而来?
如何调整头像尺寸? 使用大尺寸的图像
如何把顶部的“问题” 改成“社区”??
2.5.16版本如何只升级微信接口到最新,不升级主程序

推荐内容

关于增加自定义有偿回复问题的建议
wecenter编辑器怎样支持html
发起问题或文章没有编辑器,只有普通文本框
反馈:wangEditor目前发现的几个bug
花了1个小时终于把编辑器替换成了ueditor,这下爽了!终于赶上人类的科技进步了!
知乎的视频插入
编辑器为啥不显示,上传的内容根本没有排版
强烈建议官方站在小白用户使用编辑器的体验来完善编辑器
ckeditor添加表情插件后无法发起问题或者回复
建议编辑器可以与系统剥离开来,减少对系统的依赖,让大家有多种编辑器可选。