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

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

相关问题

如何发起付费提问?
请问如何设置回答权限,比如只有认证用户/某用户组的会员才能作答。
老大能不能把你首页上社区动态的Js调用代码放出来给学习一下啊?
如何修改“话题标题不能包含 / 与 -”
求助:ckeditor编辑器添加表格插件的问题
本站程序如何添加话题分类?
搜索结果如何不使用JS调用
如何批量导入用户
请问如何在问题列表页右侧边栏调用今日热门问题呢?
求移动端用户名调用代码

推荐内容

请问编辑器里如何添加插件?求大神解...找了一个插件,原版方法添加但是不能使用.
真的不需要编辑器!
建议增加编缉器自定义功能
能否让编辑器默认一些简单的Html,让markdown编辑器排版更加优雅
编辑器里没有上传附件的按钮
请问如何修改编辑器里的代码着色?和添加CKeditor的另外插件?
ckeditor官网的demo都支持直接粘贴剪切板图片?为什么wecenter的不行?
wecenter3.0.2添加百度ueditor编辑器的方法。ueditor和markdown共存模式
编辑框的工具栏不可以做成跟随屏幕移动吗?
关于ckeditor添加超链接出错