【发布时间】:2014-03-20 18:02:21
【问题描述】:
我尝试使用通过 modx 插件下载的 ckeditor 的 colordialog 插件。为了启用它,我在 /manager/assets/components/ckeditor/ 中编辑了 config.js 文件。
这是内容
CKEDITOR.editorConfig = function( config ) {
config.plugins = 'colordialog';
};
我也试过这个,但没有运气
CKEDITOR.editorConfig = function( config ) {
config.extraPlugins = 'colordialog';
};
这是我在 modx 管理器中的配置
“ckeditor.toolbar”设置的值:
[
{ "name": "basicstyles", "groups": [ "basicstyles", "cleanup" ], "items": [ "Bold", "Italic", "Underline", "RemoveFormat" ] },
{ "name": "paragraph", "groups": [ "list", "indent", "blocks", "align" ], "items": [ "NumberedList", "BulletedList"] },
{ "name": "links", "items": [ "Link", "Unlink"] },
{ "name": "clipboard", "groups": [ "clipboard", "undo" ], "items": [ "Cut", "Copy", "Paste", "PasteText", "PasteFromWord", "-", "Undo", "Redo" ] },
{ "name": "insert", "items": [ "Image", "SpecialChar", "Table" ] },
{ "name": "editing", "items": [ "Find", "Replace" ] },
{ "name": "tools", "items": [ "Maximize" ] },
{ "name": "styles", "items": ["Format"] },
{ "name": "colors", "items": ["colordialog"] }
]
在“ckeditor.extra_plugins”中,我启用了“colordialog”。
【问题讨论】:
标签: javascript ckeditor modx modx-revolution