CKeditor自定义插件顺序
CKeditor custom plugins order
嗨,我使用的是带有4个自定义插件的ckeditor 4.3.2版本,它们出现在插入工具栏中,我以这种方式调用插件:
extraPlugins: 'aexpagebreak,aexextraline,aexsinglecolumn,aextwocolumn',
它们加载得很好,但每次页面重新加载时,栏中插件的顺序都会随机变化,我如何在工具栏中定义插件图标的固定顺序?
您可以自己配置工具栏,定义一个对象,告诉ckeditor如何显示和分组项目。
http://docs.ckeditor.com/#/guide/dev_toolbar
来自ckeditor文档:
config.toolbarGroups = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
{ name: 'links' },
{ name: 'insert' },
{ name: 'forms' },
{ name: 'tools' },
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'others' },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
{ name: 'styles' },
{ name: 'colors' },
{ name: 'about' }
];
更多信息:
http://docs.ckeditor.com/#/guide/dev_toolbarconcepts-section-toolbar-groups-configuration
看起来他们的网站上有一个工具栏配置工具,但它可能只适用于4.5及更高版本。不完全确定:
http://ckeditor.com/tmp/4.5.0-beta/ckeditor/samples/toolbarconfigurator/index.html#basic
相关文章:
- 如何在Angular2中使用jQuery插件
- 可以前端maven插件使用节点,npm已经安装
- 如何使jQuery插件函数可调用以供独立使用,而不在集合上操作
- 我的jQuery插件参数没有正确启动,遇到了问题
- 如何在elfinder插件(一个文件管理器插件)上获得上传前事件
- 是否有任何snippet或jQuery插件可以列出easylist.txt模式匹配的DOM中的所有元素
- ajax请求的顺序总是不同的
- 按照选项卡索引的顺序循环一个jQuery选择
- jQuery插件冲突和脚本声明顺序
- phoneGap/Cordova插件加载顺序/交易w/AdBlock
- 如何按字母顺序对select2(jQuery插件)选项进行排序
- 时间滑块插件和传单 - 标记未按顺序显示
- 按gulp / browserify顺序加载javascript插件
- 用于顺序ajax请求的jQuery插件
- CKeditor自定义插件顺序
- 偏移数组顺序在Javascript中用于Backstretch插件
- Jquery内容滑块插件,可以动态改变幻灯片的顺序
- ASP.. Net MVC jQuery和插件加载顺序错误
- 更改Cordova中的加载顺序(Cordova SQLite插件)
- 保存排序顺序隐藏字段与可排序的jQuery插件