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

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

相关问题

请问Mysql字段title_fulltext是如何生成的?
如何删除附件?
图片调用的限制数 可以用 $limit 这个函数吗
子话题页面可以调用根话题,根话题可以调用子话题吗?
缓存如何关闭?因为在本地做二次开发。
wecent编辑器添加第一行多出一个<br>
3.1.2纯文本编辑器不能提交,一直在转圈!
求发现页面的的文章摘要调用方法
官网的新浪OAuth2.0 授权回调页是如何填写的
调用文章内容显示了html标签

推荐内容

3.0的编辑器怎么更换到2.5.8上?
正文内容flash问题
编辑器小问题。
beta2版本的编辑器导致带有格式的行如标题行前后的空行都不显示?
3.1.0版本的编辑器是不是还没有做好啊
如何让发布问答或文章的时候也能自动加入草稿箱
这个markitup 如何做到在线预览的呀?默认不支持的吧?
反馈一个3.0bug(官网):文章可以反复收藏没有提示
新版本编辑器CSS样式添加
内容编辑器问题,这是什么问题能解决吗?