I added the sample plugin, abbr, to the plugins folder and that works perfectly, but when I customize my toolbar the abbr doesn't show up.
Here is my config.js:
CKEDITOR.editorConfig = function( config )
{
config.extraPlugins = 'abbr';
config.toolbar = 'MyToolbar';
config.toolbar_MyToolbar =
[
{ name: 'document', items : [ 'NewPage','Preview' ] },
{ name: 'clipboard', items : [ 'insert','Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','Scayt' ] },
{ name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'
,'Iframe','abbr' ] },
'/',
{ name: 'styles', items : [ 'Styles','Format' ] },
{ name: 'basicstyles', items : [ 'Bold','Italic','Strike','-','RemoveFormat' ] },
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote' ] },
{ name: 'links', items : [ 'Link','Unlink','Anchor' ] },
{ name: 'tools', items : [ 'Maximize','-','About' ] },
];
};
Any reason that you know of why this is wrong or could it be a plugin specific configuration?
Plugin source code at http://docs.ckeditor.com/#!/guide/plugin_sdk_sample_1.
----------------------------------------------------------
Corrected Code:
CKEDITOR.editorConfig = function( config )
{
config.extraPlugins = 'abbr';
config.toolbar = 'Custom';
config.toolbar_Custom =
[
{ name: 'clipboard', items : [ 'Abbr','Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
'/',
{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv',
'-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
{ name: 'links', items : [ 'Link','Unlink','Anchor' ] },
{ name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak' ] },
{ name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] }
];
The simple solution seemed to be that config.extraPlugins = 'abbr'; had to be lower case 'abbr' and { name: 'clipboard', items : [ 'Abbr',' had to have an upper case. This was an extremely frustrating problem, but now that it is solved I can use the abbr as a template for my custom save button.