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

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

相关问题

如何去掉文章页面?
如何修改已经设置好的导航超链接?总不能删除了重新设置吧?
头像图片如何修改?
如何限制wecenter文章列表中内容的调用字数
请问后台如何在线升级?
3.0的uc头像同步如何设置?
发现页面如何调用话题标签,问题描述
如何选择用户名在注册时候的命名规则?
如何批量导入用户
Markdown编辑器没有了?2.5.6

推荐内容

在详细内容中不能放代码吗?
上传图片的插入问题
编辑器不会用怎么办?
编辑器大家觉得有什么问题吗?
不是原来的编辑器了?
ckeditor是很强大的求替换full版教程
发表文章首页有文章内容调用,发表问题怎么调动内容呢?
求CK编辑器替换Markdown 编辑器 的方法
文章评论与私信如何更换为全功能编辑器
在侧边栏调用推荐的帖子或者文章的列表