http://stackoverflow.com/questions/10327558/add-a-custom-button-to-ckeditor?rq=1Are you using the WYSIWYG module? If so, you have to create a module that implements the wysiwyg hook to add the button to the configuration. This can be done using the following code:
function yourtheme_wysiwyg_plugin($editor, $version) { switch ($editor) { return array( 'PluginName' => array( 'path' => "Path to plugin directory", 'filename' => 'plugin.js', 'buttons' => array( 'Newplugin' => t('New Plugin'), ), 'load' => TRUE, 'internal' => FALSE, ), ); break; } }
Then upload the theme to Drupal and clear your caches. The button should now appear in the list of buttons on the WYSIWYG administration page where you can select the checkbox and enable the button.