title: Can't enter javascript using CKEditor dialog
body: <p>Been trying to enter some javascript using a CKEditor dialog, tried <code>editor.document.createFromHtml('&lt;script&gt; some javascript &lt;/script&gt;');</code>
  which only created a set of empty script tags. Did not really change anything and now I get the error:</p>
  
  <blockquote>
    <p>createFromHtml is not a function</p>
  </blockquote>
  
  <p>and cannot figure out what is wrong.</p>
  
  <pre><code>onOk : function()
  {
      //var eHtml = this.getContentElement('tab1','selectedGraph').getElement();
      var graphscript = editor.document.createFromHtml( ' &lt;script type="text/javascript"&gt; &lt;script&gt;' );    
      //var graph = editor.document.createElement( 'div' );
      //graph.setAttribute('id', 'graph'); //dialog.getValueOf( 'tab1', 'abbr' ) );
      //editor.insertElement( graph );
  
  
  
      //graphscript.setValue('test'); //dialog.getValueOf( 'tab1', 'abbr' ) );
      //editor.insertElement( graphscript );      
  
  }   
  </code></pre>