How to add custom plugin controls to CkEditor I have made custom plugin for ckeditor in drupal ckeditor module.
The page where I am displaying CKEDITOR is loaded through AJAX and I am doing a replace div to show the CKEDITOR. 
the code for replaceDiv is:

function replaceDiv( div )
{
    if ( editor )
        editor.destroy();

    editor = CKEDITOR.replace( div ,
    {
        toolbar : 'Basic'/*'Basic'*/
    }); 
}


But, the problem is that in this way I am not getting my custom plugin displayed, I tried adding my control name in the toolbar definition in the array but it seems that I am not doing in the right way since it is not working!
In ckeditor.config.js you need something like this:

CKEDITOR.editorConfig = function(config) {
  config.extraPlugins = 'vicheck';
  CKEDITOR.plugins.addExternal('vicheck', '/sites/all/plugins/ckeditor/vicheck/');
  config.toolbar_DrupalBasic = [ [ 'Bold', 'Italic', '-', 'vicheck' ] ];
}


where vicheck is a plugin.

This works for me using an old CKEditor module. I don't know if the latest versions have any change.