title: Nicedit.js - cannot add custom button
body: <p>I adopted code snippet from <a href="http://wiki.nicedit.com/w/page/516/Creating%20a%20Plugin" rel="nofollow">here</a> - just changed my custom button icon path, <em>but the button doesn't appear</em>. There are no errors in the console.</p>
  
  <pre><code>/**
  * nicExample
  * @description: An example button plugin for nicEdit
  * @requires: nicCore, nicPane, nicAdvancedButton
  * @author: Brian Kirchoff
  * @version: 0.9.0
  */
  
  /* START CONFIG */
  jQuery("document").ready(function(){
    debugger;
    var nicExampleOptions = {
      buttons : {
        'example' : {name : __('Some alt text for the button'), type : 'nicEditorExampleButton'}
      }, iconFiles : {'example' : '/assets/emoticons/aa.gif'}
    };
  
    var nicEditorExampleButton = nicEditorButton.extend({   
      mouseClick : function() {
        alert('The example save button icon has been clicked!');
      }
    });
  
    nicEditors.registerPlugin(nicPlugin,nicExampleOptions);
  });
  </code></pre>
  
  <p>Also I add my custom button name to editor button list:</p>
  
  <pre><code>  this.instantiate_nicedit_for_textarea = function(textArea){
      var nic_editor = new nicEditor({buttonList : ['bold','italic','underline','strikethrough','example'], iconsPath : '/assets/nicEditorIcons.gif'})
  
      nic_editor.addInstance(textArea.id); 
  
      var topbar_id = $(textArea).prevAll('div.widget_topbar').last().children('ul').children('li.nic_panel').attr('id');
      nic_editor.setPanel(topbar_id);
    };
  </code></pre>
  
  <p><strong>UPDATE: Firefox 18.02, Chrome 22.0.1229.94</strong></p>