Answers.Body: <p>The difference between the "full" and "standard" CKEditor is one of plugins.  You can drop additional plugins into the ckeditor plugins folder at: <code>&lt;civicrmroot&gt;/packages/ckeditor/plugins</code>.  Depending on the plugin, you may also need to edit the config at <code>&lt;civicrmroot&gt;/packages/ckeditor/config.js</code>.  Detailed instructions are available <a href="https://issues.civicrm.org/jira/browse/CRM-13191" rel="noreferrer">here</a>.</p>
  
  <p>I've had perfectly good success simply dropping in the latest version of CKEditor (<a href="https://issues.civicrm.org/jira/browse/CRM-16053" rel="noreferrer">https://issues.civicrm.org/jira/browse/CRM-16053</a>).</p>
  
  <p>UPDATE: I found that newer versions of CKEditor strip out the "meta" tags from the templates unless you edit config.js.  Also, be sure to clear all caches (including browser caches) or you may find that your CKEditor toolbar button icons are messed up (because of the wrong offset)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-22T16:34:59.853Z
Answers.Text: +1 for the tip on the newer versions of CKEditor stripping meta tags. I found it was also stripping all of the inline styling from all of my templates. Foudn the answer elsewhere but to put it all in one place... add config.allowedContent = true; to you config.js file to turn off data filtering or the styling may be stripped from your mailing templates as soon as you open them! What a pain!
Answers.UserDisplayName: Eli Lisseck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-02T18:00:04.300Z
Answers.LastActivityDate: 2015-09-15T13:40:12.263Z
Answers.LastEditDate: 2015-09-15T13:40:12.263Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>Adding this answer to note that Coleman and others have done a good thing by adding the ability to get all the bells and whistles of CKEditor into Civi 4.7, see Coleman's blog post, <a href="https://civicrm.org/blogs/colemanw/big-changes-wysiwyg-editing-47" rel="nofollow">Big Changes to WYSIWYG Editing in 4.7</a> </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-15T05:06:30.680Z
Answers.LastActivityDate: 2015-07-15T05:06:30.680Z
Answers.UserDisplayName: Joe McLaughlin
Answers.Body: <p>My answer to this question assumes you are using Drupal, the Drupal CkEditor module, have installed CkEditor as a Drupal library, and want to use ICME as your file browser. Also, I'm limiting my answer to the Angular code (eg, New CiviMail). Hopefully it's still useful even if you have a different setup.</p>
  
  <p>The changes that are required are ...</p>
  
  <ol>
  <li>alter which CkEditor JS is invoked</li>
  <li>include another CkEditor JS file so you have a callback for IMCE to hook into</li>
  <li>alter the file browser so IMCE is invoked rather than CkFinder</li>
  <li>alter any other CkEditor configuration as required</li>
  </ol>
  
  <p>You can ignore 2), 3), and 4) if ICME or other configuration changes are not needed.</p>
  
  <p>The following patch to 4.6.2 implements 1) and 2). If you don't want to use IMCE then don't add the line referring to 'ckeditor.utils.js'.</p>
  
  <pre><code>diff -ur ./Civi/Angular/Page/Main.php /var/www/drupal/sites/all/modules/civicrm/Civi/Angular/Page/Main.php
  --- ./Civi/Angular/Page/Main.php    2015-04-16 09:24:10.000000000 +1000
  +++ /var/www/drupal/sites/all/modules/civicrm/Civi/Angular/Page/Main.php    2015-05-10 19:23:42.101009438 +1000
  @@ -80,7 +80,8 @@
       $this-&gt;res-&gt;addScriptFile('civicrm', 'bower_components/angular/angular.min.js', 100, 'html-header', FALSE);
  
       // FIXME: crmUi depends on loading ckeditor, but ckeditor doesn't work with this aggregation.
  -    $this-&gt;res-&gt;addScriptFile('civicrm', 'packages/ckeditor/ckeditor.js', 100, 'page-header', FALSE);
  +   drupal_add_js('window.CKEDITOR_BASEPATH = "/sites/all/libraries/ckeditor/"', array('type' =&gt; 'inline', 'weight' =&gt; -100));
  +    $this-&gt;res-&gt;addScriptFile('civicrm', '../ckeditor/includes/ckeditor.utils.js?', 100, 'footer', FALSE);
  +    $this-&gt;res-&gt;addScriptFile('civicrm', '../../libraries/ckeditor/ckeditor.js?', 100, 'footer', FALSE);
  
       $headOffset = 0;
       $config = \CRM_Core_Config::singleton();
  </code></pre>
  
  <p>The following patch implements 3) and 4). If you only want to use IMCE, change the 'filebrowser' lines. The other changes are illustrative. Note that my configuration is that uploads are only done via IMCE so the Upload URLs are empty.</p>
  
  <pre><code>diff -ur ./ang/crmUi.js /var/www/drupal/sites/all/modules/civicrm/ang/crmUi.js
  --- ./ang/crmUi.js  2015-04-16 09:24:10.000000000 +1000
  +++ /var/www/drupal/sites/all/modules/civicrm/ang/crmUi.js  2015-05-11 10:38:38.106365505 +1000
  @@ -397,12 +397,31 @@
               _.extend(ck.config, {
                 width: '94%',
                 height: '400',
  -              filebrowserBrowseUrl: CRM.crmUi.browseUrl + '?cms=civicrm&amp;type=files',
  -              filebrowserImageBrowseUrl: CRM.crmUi.browseUrl + '?cms=civicrm&amp;type=images',
  -              filebrowserFlashBrowseUrl: CRM.crmUi.browseUrl + '?cms=civicrm&amp;type=flash',
  -              filebrowserUploadUrl: CRM.crmUi.uploadUrl + '?cms=civicrm&amp;type=files',
  -              filebrowserImageUploadUrl: CRM.crmUi.uploadUrl + '?cms=civicrm&amp;type=images',
  -              filebrowserFlashUploadUrl: CRM.crmUi.uploadUrl + '?cms=civicrm&amp;type=flash',
  +              filebrowserBrowseUrl      : '/imce?app=ckeditor|sendto%40ckeditor_imceSendTo|',
  +              filebrowserImageBrowseUrl : '/imce?app=ckeditor|sendto%40ckeditor_imceSendTo|',
  +              filebrowserFlashBrowseUrl : '/imce?app=ckeditor|sendto%40ckeditor_imceSendTo|',
  +              filebrowserUploadUrl      : '',
  +              filebrowserImageUploadUrl : '',
  +              filebrowserFlashUploadUrl : '',
  +              bodyClass                 : 'cke_editable',
  +              contentsCss               : '/sites/all/themes/cbootf/css/editor.css',
  +              scayt_autoStartup         : true,
  +              scayt_sLang               : 'en_GB',
  +              forcePasteAsPlainText     : true,
  +              toolbar : [
  +                 ['Source'],
  +                 ['Cut','Copy','PasteText','-','SpellChecker', 'Scayt'],
  +                 ['Undo','Redo','Find','Replace','-','SelectAll','RemoveFormat'],
  +                 ['Image','Table','HorizontalRule','SpecialChar'],
  +                 '/',
  +                 ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
  +                 ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
  +                 ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
  +                 ['Link','Unlink','Anchor','Linkit','LinkToNode', 'LinkToMenu'],
  +                 '/',
  +                 ['TextColor','BGColor'],
  +                 ['Maximize', 'ShowBlocks']
  +              ],
               });
             }
  </code></pre>
  
  <p>Note that if you want to change the CkEditor for the non-Angular code, you need to make analogous changes to templates/CRM/common/wysiwyg.tpl and packages/HTML/QuickForm/ckeditor.php.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-12T18:45:39.803Z
Answers.Text: Ken, thanks so much, will check this out as well.
Answers.UserDisplayName: Joe McLaughlin
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-14T07:08:08.487Z
Answers.Text: This got me 95% of the way there but when IMCE loads I'm missing the crucial "Insert File" button that sends the file path back to the main CKEditor window. Any Ideas what's missing for that part?
Answers.UserDisplayName: Pooch
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-14T08:30:32.507Z
Answers.Text: Found it... needed to load in the basepath reference <code>drupal_add_js('window.CKEDITOR_BASEPATH = "/sites/all/libraries/ckeditor/"', array('type' => 'inline', 'weight' => -100));</code>
  and move the js file loads from the page-header to page-footer... this is consistent with how the ckeditor module loads its assets.
Answers.UserDisplayName: Pooch
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-15T03:51:03.450Z
Answers.Text: I see Pooch has suggested an Edit to your post Ken that inserts his new line of code. Are you happy for his edit to be accepted?
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-24T00:32:26.840Z
Answers.Text: I think the edit by @Pooch is OK, though I haven't tested it. The BASEPATH error I was getting was the Javascript console said 'TypeError: Drupal.settings.ckeditor is undefined' and I fixed it by editing sites/all/modules/ckeditor/includes/ckeditor.utils.js ...
  
  if (typeof window.CKEDITOR_BASEPATH === 'undefined') {
  -  window.CKEDITOR_BASEPATH = Drupal.settings.ckeditor.editor_path;
  +  if (typeof Drupal.settings.ckeditor !== 'undefined') {
  +    window.CKEDITOR_BASEPATH = Drupal.settings.ckeditor.editor_path;
  +  }
   }
Answers.UserDisplayName: Ken West
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-11T02:30:52.473Z
Answers.LastActivityDate: 2015-08-15T23:48:03.590Z
Answers.LastEditDate: 2015-08-15T23:48:03.590Z
Answers.UserDisplayName: Ken West
Answers.Body: <p>That's a good question. In the current version of Civi there is no UI for adding buttons to the CKEditor toolbar. However I think it would be relatively easy, especially since we now have a <a href="https://issues.civicrm.org/jira/browse/CRM-16354" rel="noreferrer">pluggable interface for wysiwyg editors</a>, to integrate with the new <a href="http://ckeditor.com/tmp/4.5.0-beta/ckeditor/samples/toolbarconfigurator/index.html#basic" rel="noreferrer">Toolbar Configurator</a> to allow a CiviCRM admin to drag n drop buttons in the toolbar.</p>
  
  <p>Update: I've <a href="https://issues.civicrm.org/jira/browse/CRM-16444" rel="noreferrer">implemented</a> a GUI for the <a href="https://civicrm.org/blogs/colemanw/big-changes-wysiwyg-editing-47" rel="noreferrer">configurator in CiviCRM 4.7</a>!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-02T21:37:02.400Z
Answers.Text: Coleman, thanks,  will check out the Configurator and the issue.
Answers.UserDisplayName: Joe McLaughlin
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-16T21:59:12.283Z
Answers.Text: Coleman, thanks for the update! Woo-hoo!
Answers.UserDisplayName: Joe McLaughlin
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-02T20:23:31.753Z
Answers.LastActivityDate: 2015-09-15T15:37:03.080Z
Answers.LastEditDate: 2015-09-15T15:37:03.080Z
Answers.UserDisplayName: Coleman
Body: <p>So is there a way to enable or install the full version of the free and open source CKEditor in CiviCRM 4.6.x ? </p>
  
  <p>Looks like the CKEditor Standard editor (see <a href="http://ckeditor.com/demo#standard">http://ckeditor.com/demo#standard</a> ) is installed with Civi (see <a href="http://d46.demo.civicrm.org/civicrm/a/#/mailing/37">http://d46.demo.civicrm.org/civicrm/a/#/mailing/37</a> ), but the "full featured" version ( see <a href="http://ckeditor.com/demo#full">http://ckeditor.com/demo#full</a> ) has more useful stuff, particularly aligning and centering text.</p>
  
  <p>I've used the full version on the CKEditor demo site just to center text for a CiviMail mailing. That works, but having the full featured version right in CiviMail would be handy.  </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-05-02T01:50:45.367Z
Comments.Text: I think you're asking if you can customize the buttons available in the editor. It wouldn't really require a different "version" of CKEditor. Is that right?
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-05-02T02:07:39.343Z
Comments.Text: Well, can I customize or add buttons to install other features like text alignment? The CKEditor has two different versions,  standard and full. I suppose I can install the full version to my Civi sites, will check that out.  The full version could be the default that gets installed along with Civi rather than the standard version, right?
Comments.UserDisplayName: Joe McLaughlin
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-05-11T19:09:49.870Z
Comments.Text: Possibly related wiki page: *[Configuring CiviCRM to Use the Default Drupal Editor](http://wiki.civicrm.org/confluence/display/CRMDOC/Configuring+CiviCRM+to+Use+the+Default+Drupal+Editor)*.
Comments.UserDisplayName: choster
Tags: <civimail><email><ckeditor>
Title: Is there a way to enable or install the full version of CKEditor in CiviCRM 4.6.x?
ThreadText: # Is there a way to enable or install the full version of CKEditor in CiviCRM 4.6.x?
  
  (Asked by: username_0 on 2015-05-01)
  
  So is there a way to enable or install the full version of the free and open source CKEditor in CiviCRM 4.6.x ?
  
  Looks like the CKEditor Standard editor (see <http://ckeditor.com/demo#standard> ) is installed with Civi (see <http://d46.demo.civicrm.org/civicrm/a/#/mailing/37> ), but the "full featured" version ( see <http://ckeditor.com/demo#full> ) has more useful stuff, particularly aligning and centering text.
  
  I've used the full version on the CKEditor demo site just to center text for a CiviMail mailing. That works, but having the full featured version right in CiviMail would be handy.
  
  **Tags:** civimail, email, ckeditor
  
  > **Comments:**
  > **username_1**: I think you're asking if you can customize the buttons available in the editor. It wouldn't really require a different "version" of CKEditor. Is that right?  
  > **username_0**: Well, can I customize or add buttons to install other features like text alignment? The CKEditor has two different versions,  standard and full. I suppose I can install the full version to my Civi sites, will check that out.  The full version could be the default that gets installed along with Civi rather than the standard version, right?  
  > **username_2**: Possibly related wiki page: *[Configuring CiviCRM to Use the Default Drupal Editor](http://wiki.civicrm.org/confluence/display/CRMDOC/Configuring+CiviCRM+to+Use+the+Default+Drupal+Editor)*.  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_1 on 2015-05-02. Score: 9 | Accepted answer
  
  That's a good question. In the current version of Civi there is no UI for adding buttons to the CKEditor toolbar. However I think it would be relatively easy, especially since we now have a [pluggable interface for wysiwyg editors](https://issues.civicrm.org/jira/browse/CRM-16354), to integrate with the new [Toolbar Configurator](http://ckeditor.com/tmp/4.5.0-beta/ckeditor/samples/toolbarconfigurator/index.html#basic) to allow a CiviCRM admin to drag n drop buttons in the toolbar.
  
  Update: I've [implemented](https://issues.civicrm.org/jira/browse/CRM-16444) a GUI for the [configurator in CiviCRM 4.7](https://civicrm.org/blogs/colemanw/big-changes-wysiwyg-editing-47)!
  
  > **Comments:**
  > **username_0**: username_1, thanks,  will check out the Configurator and the issue.  
  > **username_0**: username_1, thanks for the update! Woo-hoo!  
  
  ---
  
  ### Answer by username_3 on 2015-05-02. Score: 12
  
  The difference between the "full" and "standard" CKEditor is one of plugins. You can drop additional plugins into the ckeditor plugins folder at: `<civicrmroot>/packages/ckeditor/plugins`. Depending on the plugin, you may also need to edit the config at `<civicrmroot>/packages/ckeditor/config.js`. Detailed instructions are available [here](https://issues.civicrm.org/jira/browse/CRM-13191).
  
  I've had perfectly good success simply dropping in the latest version of CKEditor (<https://issues.civicrm.org/jira/browse/CRM-16053>).
  
  UPDATE: I found that newer versions of CKEditor strip out the "meta" tags from the templates unless you edit config.js. Also, be sure to clear all caches (including browser caches) or you may find that your CKEditor toolbar button icons are messed up (because of the wrong offset)
  
  > **Comments:**
  > **username_4**: +1 for the tip on the newer versions of CKEditor stripping meta tags. I found it was also stripping all of the inline styling from all of my templates. Foudn the answer elsewhere but to put it all in one place... add config.allowedContent = true; to you config.js file to turn off data filtering or the styling may be stripped from your mailing templates as soon as you open them! What a pain!  
  
  ---
  
  ### Answer by username_0 on 2015-07-15. Score: 4
  
  Adding this answer to note that username_1 and others have done a good thing by adding the ability to get all the bells and whistles of CKEditor into Civi 4.7, see username_1's blog post, [Big Changes to WYSIWYG Editing in 4.7](https://civicrm.org/blogs/colemanw/big-changes-wysiwyg-editing-47)
  
  
  ---
  
  ### Answer by username_5 on 2015-05-11. Score: 4
  
  My answer to this question assumes you are using Drupal, the Drupal CkEditor module, have installed CkEditor as a Drupal library, and want to use ICME as your file browser. Also, I'm limiting my answer to the Angular code (eg, New CiviMail). Hopefully it's still useful even if you have a different setup.
  
  The changes that are required are ...
  
  1. alter which CkEditor JS is invoked
  2. include another CkEditor JS file so you have a callback for IMCE to hook into
  3. alter the file browser so IMCE is invoked rather than CkFinder
  4. alter any other CkEditor configuration as required
  
  You can ignore 2), 3), and 4) if ICME or other configuration changes are not needed.
  
  The following patch to 4.6.2 implements 1) and 2). If you don't want to use IMCE then don't add the line referring to 'ckeditor.utils.js'.
  
  ```
  diff -ur ./Civi/Angular/Page/Main.php /var/www/drupal/sites/all/modules/civicrm/Civi/Angular/Page/Main.php
  --- ./Civi/Angular/Page/Main.php    2015-04-16 09:24:10.000000000 +1000
  +++ /var/www/drupal/sites/all/modules/civicrm/Civi/Angular/Page/Main.php    2015-05-10 19:23:42.101009438 +1000
  @@ -80,7 +80,8 @@
       $this->res->addScriptFile('civicrm', 'bower_components/angular/angular.min.js', 100, 'html-header', FALSE);
  
       // FIXME: crmUi depends on loading ckeditor, but ckeditor doesn't work with this aggregation.
  -    $this->res->addScriptFile('civicrm', 'packages/ckeditor/ckeditor.js', 100, 'page-header', FALSE);
  +   drupal_add_js('window.CKEDITOR_BASEPATH = "/sites/all/libraries/ckeditor/"', array('type' => 'inline', 'weight' => -100));
  +    $this->res->addScriptFile('civicrm', '../ckeditor/includes/ckeditor.utils.js?', 100, 'footer', FALSE);
  +    $this->res->addScriptFile('civicrm', '../../libraries/ckeditor/ckeditor.js?', 100, 'footer', FALSE);
  
       $headOffset = 0;
       $config = \CRM_Core_Config::singleton();
  
  ```
  
  The following patch implements 3) and 4). If you only want to use IMCE, change the 'filebrowser' lines. The other changes are illustrative. Note that my configuration is that uploads are only done via IMCE so the Upload URLs are empty.
  
  ```
  diff -ur ./ang/crmUi.js /var/www/drupal/sites/all/modules/civicrm/ang/crmUi.js
  --- ./ang/crmUi.js  2015-04-16 09:24:10.000000000 +1000
  +++ /var/www/drupal/sites/all/modules/civicrm/ang/crmUi.js  2015-05-11 10:38:38.106365505 +1000
  @@ -397,12 +397,31 @@
               _.extend(ck.config, {
                 width: '94%',
                 height: '400',
  -              filebrowserBrowseUrl: CRM.crmUi.browseUrl + '?cms=civicrm&type=files',
  -              filebrowserImageBrowseUrl: CRM.crmUi.browseUrl + '?cms=civicrm&type=images',
  -              filebrowserFlashBrowseUrl: CRM.crmUi.browseUrl + '?cms=civicrm&type=flash',
  -              filebrowserUploadUrl: CRM.crmUi.uploadUrl + '?cms=civicrm&type=files',
  -              filebrowserImageUploadUrl: CRM.crmUi.uploadUrl + '?cms=civicrm&type=images',
  -              filebrowserFlashUploadUrl: CRM.crmUi.uploadUrl + '?cms=civicrm&type=flash',
  +              filebrowserBrowseUrl      : '/imce?app=ckeditor|sendto%40ckeditor_imceSendTo|',
  +              filebrowserImageBrowseUrl : '/imce?app=ckeditor|sendto%40ckeditor_imceSendTo|',
  +              filebrowserFlashBrowseUrl : '/imce?app=ckeditor|sendto%40ckeditor_imceSendTo|',
  +              filebrowserUploadUrl      : '',
  +              filebrowserImageUploadUrl : '',
  +              filebrowserFlashUploadUrl : '',
  +              bodyClass                 : 'cke_editable',
  +              contentsCss               : '/sites/all/themes/cbootf/css/editor.css',
  +              scayt_autoStartup         : true,
  +              scayt_sLang               : 'en_GB',
  +              forcePasteAsPlainText     : true,
  +              toolbar : [
  +                 ['Source'],
  +                 ['Cut','Copy','PasteText','-','SpellChecker', 'Scayt'],
  +                 ['Undo','Redo','Find','Replace','-','SelectAll','RemoveFormat'],
  +                 ['Image','Table','HorizontalRule','SpecialChar'],
  +                 '/',
  +                 ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
  +                 ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
  +                 ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
  +                 ['Link','Unlink','Anchor','Linkit','LinkToNode', 'LinkToMenu'],
  +                 '/',
  +                 ['TextColor','BGColor'],
  +                 ['Maximize', 'ShowBlocks']
  +              ],
               });
             }
  
  ```
  
  Note that if you want to change the CkEditor for the non-Angular code, you need to make analogous changes to templates/CRM/common/wysiwyg.tpl and packages/HTML/QuickForm/ckeditor.php.
  
  > **Comments:**
  > **username_0**: Ken, thanks so much, will check this out as well.  
  > **username_6**: This got me 95% of the way there but when IMCE loads I'm missing the crucial "Insert File" button that sends the file path back to the main CKEditor window. Any Ideas what's missing for that part?  
  > **username_6**: Found it... needed to load in the basepath reference <code>drupal_add_js('window.CKEDITOR_BASEPATH = "/sites/all/libraries/ckeditor/"', array('type' => 'inline', 'weight' => -100));</code> and move the js file loads from the page-header to page-footer... this is consistent with how the ckeditor module loads its assets.  
  > **username_7**: I see username_6 has suggested an Edit to your post Ken that inserts his new line of code. Are you happy for his edit to be accepted?  
  > **username_5**: I think the edit by @username_6 is OK, though I haven't tested it. The BASEPATH error I was getting was the Javascript console said 'TypeError: Drupal.settings.ckeditor is undefined' and I fixed it by editing sites/all/modules/ckeditor/includes/ckeditor.utils.js ...  if (typeof window.CKEDITOR_BASEPATH === 'undefined') { -  window.CKEDITOR_BASEPATH = Drupal.settings.ckeditor.editor_path; +  if (typeof Drupal.settings.ckeditor !== 'undefined') { +    window.CKEDITOR_BASEPATH = Drupal.settings.ckeditor.editor_path; +  }  }  
  
  ---
  
  