Chris Kohout
Chris Kohout

Reputation: 95

Adding custom button to CKEditor

I've downloaded the 'timestamp' plugin example, but no matter what I do, I can't get the new button to appear in my toolbar. Otherwise, CKEditor seems to work great.

My config.js:

CKEDITOR.editorConfig = function( config ) {

config.extraPlugins = 'timestamp';

config.toolbar = [
    { name: 'basicstyles', items: [ 'Bold', 'Italic','Underline','Strike' ] },
    { name: 'paragraph', items: [ 'NumberedList', 'BulletedList' ] },
    { name: 'links', items: [ 'Link', 'Unlink' ] },
];

config.removeDialogTabs = 'link:advanced;link:target';

};

Upvotes: 0

Views: 918

Answers (1)

user5176037
user5176037

Reputation:

Make sure you cleared browser cache. also add the button where you want it to go

config.toolbar = [
    { name: 'basicstyles', items: [ 'Bold', 'TimeStamp', 'Italic','Underline','Strike' ] },
    { name: 'paragraph', items: [ 'NumberedList', 'BulletedList' ] },
    { name: 'links', items: [ 'Link', 'Unlink' ] },
];

Upvotes: 2

Related Questions