title: What is the difference between CKEDITOR.document and CKEDITOR.dom.document?
body: <p>In the ck-editor documentation CkEDITOR.dom.document is defined as -</p>
  
  <pre><code>Represents a DOM document.
  </code></pre>
  
  <p>and example is given as - </p>
  
  <pre><code>var document = new CKEDITOR.dom.document( document )
  </code></pre>
  
  <p>what should be the parameter 'document' to this function?</p>
  
  <p>Also in CKEDITOR core codebase this definition is given - </p>
  
  <pre><code>CKEDITOR.document = new CKEDITOR.dom.document( document );
  </code></pre>
  
  <p>which says that CKEDITOR.document is the document of the window containing the CKEDITOR instance.One can fetch anything from window's DOM for example - </p>
  
  <pre><code>alert( CKEDITOR.document.getBody().getName() ); // 'body'
  </code></pre>
  
  <p>I am getting confused between the significance of the two and how to use them differently,where to use them?</p>
  
  <p>Thanks.</p>