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

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

相关问题

手机版如何修改个人资料
官方这个推荐内容调用太消耗资源了,还要根据话题来判断,不如简单点,直接调用前几条。
主要是可视化编辑器 可视化在哪里 能不能给我截个图看看
关于编辑器的问题和建议
ckeditor编辑器添加表格 无法显示
发现里如何不显示文章
咨询一个问题,我单独做了一个页面,如何判断用户是否登录了?
如何令一个问题只有问方与被问方可见?
编辑器预览功能不错,最好放在编辑器下面
说好的编辑器呢?

推荐内容

手机版怎么启用ckediter编辑器?
修改回复能不能现实编辑器的编辑栏目,每次修改的时候 就是出来一个空栏目,没有各种修改功能
回复或者编辑回复 怎么做成高级模式
编辑器的建议
WeCenter 3.0.2 版本 编辑回复没有编辑器功能
终于把编辑器换成KindEditor
发表文章首页有文章内容调用,发表问题怎么调动内容呢?
DEV2.0 20130118 插入附件图片位置不是游标位置,总是在最后面
今天刚装的WECENTER 编辑器不显示
如何使现有的CKEditor 编辑器有表格功能?能否详细说明一下