title: How to use CKEDITOR.tools.callFunction for specific instance
body: <p>I can use this code:</p>
  
  <pre><code>var OriginalFunction = CKEDITOR.tools.callFunction;
  CKEDITOR.tools.callFunction=function(n,x)
  {
    OriginalFunction(n, x);
    alert("Called From New function");
  }
  </code></pre>
  
  <p>To add a javascript function beside the regular function of he CKeditor toolbar buttons. but i need to be able to add to a specific editor instance. so i tried:</p>
  
  <pre><code>var OriginalFunction = CKEDITOR.instances.editor1.tools.callFunction;
  CKEDITOR.instances.editor1.tools.callFunction=function(n,x)
  {
    OriginalFunction(n, x);
    alert("Called From New function");
  }
  </code></pre>
  
  <p>But then the function i add don't work. is there another way to do that?</p>
  
  <p>Thanks.</p>