gpt4 book ai didi

javascript - Modx 管理器中的 CKEditor

转载 作者:行者123 更新时间:2023-12-02 17:37:00 24 4
gpt4 key购买 nike

我尝试使用 ckeditor 的 colordialog 插件,该插件是通过 modx 插件下载的。为了启用它,我编辑了/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”。

最佳答案

您在系统设置中看到这个选项了吗?

ckeditor option in system settings

关于javascript - Modx 管理器中的 CKEditor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22541470/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com