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

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

相关问题

100元帮修改wc.3.0.1的编辑器为ueditor最新版
关于branch化的想法,如何把问题关联起来?
这类网站该如何运营。
如何打开 Debug 模式
万网空间如何实现伪静态,求大神指导
Wecenter如何使用第三方登录?比如QQ呀,微博呀之类的。
发起活动如何默认选择活动而不是众筹?
如何做好一个网站的SEO优化?
如何备份网站数据?
正在开发模版中,请问如何调用推荐、或热门下的问题列表?

推荐内容

WeCenter 3.0.0 编辑器问题:使用列表后最后会加空行(预览和最后的排版不一致)
编辑器教学文字篇
需要编辑器有一个播放flash的功能 或者类似phpwind的虾米音乐插件。
图片比较多的社区用WC真蛋疼,求建议
【已修复】编辑器中https中相关的BUG已将被我全部修复~~哈哈
wecenter 3.1.2替换编辑器为umeditor过程实录
微信复制过来的东西,发布到WC不会换行。
Anwsion TinyMCE 插件更新 20120716 版
求助:ckeditor编辑器添加表格插件的问题
wecenter 的编辑器官方后面还要修改吗?我们不是很专业,如果官方要做,我们就等官方的