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

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

相关问题

如何在OA上提交软件申请
如何解决发布文章时提示“文章内容过长”的问题
QQ登录的账号如何获取邮箱信息
请问wecenter官方用的是哪家的vps,图片存储是如何解决的?
一个整合的问题,如何集成自己开发的用户系统,实现一次性登录
如何鼓励用户使用感谢、赞同和反对功能提高用户的积极性和网站的活跃度,亲们来讨论一下!
终于换编辑器了
请问账户中微信绑定如何设置?
wecenter 答案排序如何设置默认按照时间进行排序?
如何解决nofollow的问题?

推荐内容

编辑器插入图片功能可以参考下Discourse
Anwsion TinyMCE 插件更新 20120716 版
求官方自己体验下用这编辑器发这篇文章有多麻烦
建议编辑器可以与系统剥离开来,减少对系统的依赖,让大家有多种编辑器可选。
在bootstrap的中文网上看到一个开源的可视化编辑器,官方可以考虑一下。
大家有什么好的办法将图片上传功能移到图片链接的页面吗?
wecenter官方编辑器能不能好好搞
关于编辑器的疑问
新版编辑器图标加载问题
测试附件游客可以下载吗