title: CKEditor close dialog
body: <p>I'm trying to call close function for CKEditor dialog box from my custom plugin. Just like it happens when you are clicking on smile in "smileys" plugin, but I can't find out how can I do the same in my own plugin.
  Thanx for reply!</p>
  
  <p>I've got the solution.
  In my plugin I needed to call close function from "CKEDITOR.dialog.add" in "onLoad" section. So, I have to do this:</p>
  
  <pre><code>CKEDITOR.dialog.add( 'plugin_name', function( editor ){
      onLoad: function( event ){
          [...some code...]
          event.sender.hide();
      }
  }
  </code></pre>