Answers.Body: <p>Since you are using 4.6, the answer is that you need to ensure templates/CRM/common/wysiwyg.tpl is being loaded and that the smarty variable <code>$includeWysiwygEditor</code> is set to <code>true</code>.</p>
  
  <p>Or since you are hacking around CiviCRM anyway, just keep it simple and stick something like this in your page source:</p>
  
  <pre><code>&lt;script type="text/javascript" src="/path/to/civicrm/packages/ckeditor/ckeditor.js"&gt;&lt;/script&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-26T10:52:14.083Z
Answers.Text: Thank you @Coleman, that simple ckeditor.js include works like a charm! For those who'd be surprised drupal_get_path('module', "civicrm") returns "civircrm/drupal"  instead of just "civicrm", there is a simple trick "proudly found elsewhere at stackexchange":     
  $civipath = substr(drupal_get_path('module', 'civicrm'), 0, strripos(drupal_get_path('module', 'civicrm'), '/'));
Answers.UserDisplayName: yurg
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-30T01:36:36.763Z
Answers.Text: The `/../` trick usually works too.
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-25T20:55:23.947Z
Answers.LastActivityDate: 2016-05-25T21:58:01.673Z
Answers.LastEditDate: 2016-05-25T21:58:01.673Z
Answers.UserDisplayName: Coleman
Answers.Body: <p>I experimented the same issue with 4.7.10</p>
  
  <p>In the New Mail form I cannot see the ckEditor buttons but no javacript error are raised.
  If I instead go to [Configure CKEditor] page I get the following error: </p>
  
  <p>ReferenceError: CKEDITOR is not defined in abstracttoolbarmodifier.js</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-26T15:34:00.987Z
Answers.Text: Going forward with my test and comparing two installation (one working and the other no) it seems the problem is in the database.
  I mean that pointing one database the editor does not work, pointing instead another one with same source, it work properly. 
  Does anyone have any idea?
Answers.UserDisplayName: marcello
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-18T14:20:50.837Z
Answers.LastActivityDate: 2017-04-18T14:20:50.837Z
Answers.UserDisplayName: marcello
Body: <p>Yet another question regarding JS resources load outside of civicrm. We load contact edit form via <strong>CRM.popup</strong> from a page outside of /civicrm/ path (from custom  dashboard page created in drupal). So far [it was] so good; recently we've mentioned that javascript goodies have stopped working on the form; only related message in a browser console is <strong>CKEDITOR is undefined</strong>. It all goes back to normal after disabling WYSIWYG at "Display Preferences" (we've got same error with TinyMCE enabled). 
  Is it something we could "cure" via configuration tinkering or it is something to report as an error?    </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-25T15:05:12.253Z
Comments.Text: What version of CiviCRM? wysiwyg loading is handled quite differently from 4.6 - 4.7.
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-25T15:55:33.893Z
Comments.Text: Thanks for getting back to me @Coleman. It's 4.6.16; we aren't brave enough to step into 4.7.x yet.
Comments.UserDisplayName: yurg
Tags: <javascript><ckeditor><wysiwyg><jquery>
Title: CKEDITOR is undefined when form is being loaded in model frame outside of /civicrm/ path
ThreadText: # CKEDITOR is undefined when form is being loaded in model frame outside of /civicrm/ path
  
  (Asked by: username_0 on 2016-05-24)
  
  Yet another question regarding JS resources load outside of civicrm. We load contact edit form via **CRM.popup** from a page outside of /civicrm/ path (from custom dashboard page created in drupal). So far [it was] so good; recently we've mentioned that javascript goodies have stopped working on the form; only related message in a browser console is **CKEDITOR is undefined**. It all goes back to normal after disabling WYSIWYG at "Display Preferences" (we've got same error with TinyMCE enabled).
  Is it something we could "cure" via configuration tinkering or it is something to report as an error?
  
  **Tags:** javascript, ckeditor, wysiwyg, jquery
  
  > **Comments:**
  > **username_1**: What version of CiviCRM? wysiwyg loading is handled quite differently from 4.6 - 4.7.  
  > **username_0**: Thanks for getting back to me @username_1. It's 4.6.16; we aren't brave enough to step into 4.7.x yet.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2016-05-25. Score: 1 | Accepted answer
  
  Since you are using 4.6, the answer is that you need to ensure templates/CRM/common/wysiwyg.tpl is being loaded and that the smarty variable `$includeWysiwygEditor` is set to `true`.
  
  Or since you are hacking around CiviCRM anyway, just keep it simple and stick something like this in your page source:
  
  ```
  <script type="text/javascript" src="/path/to/civicrm/packages/ckeditor/ckeditor.js"></script>
  
  ```
  
  > **Comments:**
  > **username_0**: Thank you @username_1, that simple ckeditor.js include works like a charm! For those who'd be surprised drupal_get_path('module', "civicrm") returns "civircrm/drupal"  instead of just "civicrm", there is a simple trick "proudly found elsewhere at stackexchange":      $civipath = substr(drupal_get_path('module', 'civicrm'), 0, strripos(drupal_get_path('module', 'civicrm'), '/'));  
  > **username_1**: The `/../` trick usually works too.  
  
  ---
  
  ### Answer by username_2 on 2017-04-18. Score: 0
  
  I experimented the same issue with 4.7.10
  
  In the New Mail form I cannot see the ckEditor buttons but no javacript error are raised.
  If I instead go to [Configure CKEditor] page I get the following error:
  
  ReferenceError: CKEDITOR is not defined in abstracttoolbarmodifier.js
  
  > **Comments:**
  > **username_2**: Going forward with my test and comparing two installation (one working and the other no) it seems the problem is in the database. I mean that pointing one database the editor does not work, pointing instead another one with same source, it work properly.  Does anyone have any idea?  
  
  ---
  
  