KomalJariwala
KomalJariwala

Reputation: 2017

add multiple extra plugins on a toolbar of ckeditor

I want to add multiple plugins(which i have created) on a toolbar of ckeditor. I have written below code in config.js

CKEDITOR.editorConfig = function( config ) {
    config.toolbar_Full =  [
        ['Styles', 'Bold', 'Italic', 'Underline', 'SpellChecker', 'Scayt', '-', 'NumberedList', 'BulletedList'],
        ['Link', 'Unlink'], ['Undo', 'Redo', '-', 'SelectAll'], '/', ['timestamp', '-', 'linkbutton']
    ];
    config.extraPlugins = 'linkbutton, timestamp';
};

and i have two different custom plugins. but another plugin is not accepted. How to add another plugin on a one toolbar?

Upvotes: 24

Views: 38811

Answers (2)

Dev Rathi
Dev Rathi

Reputation: 761

You can add another custom plugin like this also:

extraPlugins: 'linkbutton,timestamp,justify'

Upvotes: 0

Francis
Francis

Reputation: 606

You are just right except of the space after the comma so your definition regarding http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.extraPlugins should be:

config.extraPlugins = 'linkbutton,timestamp';

Upvotes: 59

Related Questions