Colin Brazier
Colin Brazier

Reputation: 11

CKEditor plugins not working/appearing

I have followed the documentation and added two plugins:

but neither appears in my toolbar. I have added all the dependencies.

Here's my config.js

CKEDITOR.editorConfig = function( config ) {
config.toolbarGroups = [
    { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
    { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
    { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
    { name: 'forms', groups: [ 'forms' ] },
    '/',
    { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
    { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
    { name: 'links', groups: [ 'links' ] },
    { name: 'insert', groups: [ 'insert' ] },
    '/',
    { name: 'styles', groups: [ 'styles' ] },
    { name: 'colors', groups: [ 'colors' ] },
    { name: 'tools', groups: [ 'tools' ] },
    { name: 'others', groups: [ 'others' ] },
    { name: 'about', groups: [ 'about' ] }
];

config.height = 500;        // 500 pixels.

/*config.removePlugins = 'colorbutton';*/

config.extraPlugins = 'button', 'toolbar', 'notification', 'clipboard', 'lineutils', 'dialogui', 'dialog', 'widgetselection', 'widget', 'image2', 'panel', 'floatpanel', 'panelbutton', 'enhancedcolorbutton';

config.removeButtons = 'NewPage,Source,Scayt,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,Outdent,Indent,Blockquote,CreateDiv,BidiLtr,BidiRtl,Language,Anchor,Flash,SpecialChar,PageBreak,Iframe,BGColor,Maximize,ShowBlocks';
};

Any assistance is much appreciated.

Upvotes: 1

Views: 3876

Answers (1)

j.swiderski
j.swiderski

Reputation: 2445

Please see:https://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraPlugins

The list of plugins should be entered as a single string of comma separated values:

config.extraPlugins = 'button,toolbar,notification,clipboard,lineutils,dialogui,dialog,widgetselection,widget,image2,panel,floatpanel,panelbutton,enhancedcolorbutton';

NOTE: plugins like button,toolbar,dialog and dialogui, should be available in any preset so unless you are having some very customized package, there should be no need to add them with extraPlugins setting. They should already be in the package.

Upvotes: 2

Related Questions