Search code examples
javascriptckeditormodxmodx-revolution

CKEditor in Modx Manager


I try to use the colordialog plugin of the ckeditor which is downloaded with the modx addon. To Enable it I edited the config.js file in /manager/assets/components/ckeditor/.

Here is the content

CKEDITOR.editorConfig = function( config ) {
    config.plugins = 'colordialog';
};

I also tried this, but with no luck

CKEDITOR.editorConfig = function( config ) {
    config.extraPlugins = 'colordialog';
};

Here is my config in the modx manager

Value of "ckeditor.toolbar" Setting:

[
    { "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"] }
]

And in the "ckeditor.extra_plugins" I have enabled the "colordialog".


Solution

  • Did you see this option in system settings?

    ckeditor option in system settings