title: CKEditor works - but get error "Uncaught ReferenceError: CKEDITOR is not defined"
body: <p>I have an inline CKeditor on my page and it works fine. It posts AJAX after its been updated, all works great.</p>
  
  <p>However, in the console I get the error <strong>"Uncaught ReferenceError: CKEDITOR is not defined"</strong></p>
  
  <p>I discovered this when I was trying to modify the toolbar in the javascript, but the toolbar wasn't changing.</p>
  
  <p>Any ideas what is going on here?</p>
  
  <pre><code>&lt;div id="editor&lt;?php echo $sub_category['id'] ?&gt;" contenteditable="true" class="contentz ckeditor" typeID="&lt;?php echo $sub_category['id'] ?&gt;"&gt;
  &lt;?php if($sub_category['content']==""){ echo "Click here to add some content"; }else{ echo $sub_category['content']; } ?&gt;
  &lt;/div&gt;
  &lt;script&gt;
  
      // Turn off automatic editor creation first.
      CKEDITOR.disableAutoInline = true;
      CKEDITOR.inline('editor&lt;?php echo $sub_category['id'] ?&gt;');
  
  
  
  &lt;/script&gt;
  </code></pre>
  
  <p>This is called just before the body tag...</p>
  
  <pre><code>&lt;script src="assets/js/ckeditor/ckeditor.js"&gt;&lt;/script&gt;
  &lt;script src="assets/js/ckeditor/adapters/jquery.js"&gt;&lt;/script&gt;
  </code></pre>