Answers.Body: <p>Thanks Jon G, for steering me in the right direction and hopefully this might help someone down the line.</p>
  
  <p>I probably wasn't particularly clear in my description in that I run a Drupal multisite but CiviCRM is still running under it's original single site (although this is bringing me a step closer to having all the sites run CiviCRM especially for webform integration).</p>
  
  <p>Accordingly, I was still hosting CiviCRM in the 'subsite'/modules directory. When I moved the module into the /all/modules and changed the $civicrm_root any inconsistencies in the Directories and URL Resources corrected themselves. </p>
  
  <p>Now the CKEditor Configuration works!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-17T14:55:05.047Z
Answers.Text: Feel free to mark your own answer as "Accepted"; this will help future folks.  Thanks for reporting back!
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-16T19:24:34.403Z
Answers.LastActivityDate: 2017-08-16T19:24:34.403Z
Answers.UserDisplayName: jansmath3
Answers.Body: <p>You should be able to fix this by <a href="https://civicrm.stackexchange.com/questions/19881/how-can-i-fix-civicrm-root-variable-on-an-addon-domain/19958#19958">defining the CIVICRM_CMSDIR constant</a>.  Since you're using multi-site, you'll need to define that on a per-site basis.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-16T17:10:47.270Z
Answers.Text: Thanks Jon for the reply.  I've tried all angles of implementing the CIVICRM_CMSDIR constant and it does help correct the cms directory root, which will probably alleviate some pain in the future. However, it doesn't fix the extra "/sites/focus" when ckeditor is loading.
Answers.UserDisplayName: jansmath3
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-16T17:19:42.070Z
Answers.Text: Do you have a symlink somewhere in your $civicrm_root?
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-16T18:21:21.240Z
Answers.Text: I do have a symlink from the /var/lib/mysql to the location of mysql databases.  Could that cause it?
Answers.UserDisplayName: jansmath3
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-15T20:39:04.990Z
Answers.LastActivityDate: 2017-08-15T20:39:04.990Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>After updating to 4.7.23 from 4.7.20, I can now use the CKeditor Configuration and the changes are saved based on the changes made at <a href="https://issues.civicrm.org/jira/browse/CRM-19303" rel="nofollow noreferrer">https://issues.civicrm.org/jira/browse/CRM-19303</a>, but the wysiwyg doesn't show up. The Drupal log error message reports "page not found" and that it is looking for</p>
  
  <p><code>http://staging.focusdc.org/sites/focus/sites/focusdc.org/modules/civicrm/js/wysiwyg/crm.ckeditor.js</code></p>
  
  <p>when I believe it should be looking for </p>
  
  <p><code>http://staging.focusdc.org/sites/focusdc.org/modules/civicrm/js/wysiwyg/crm.ckeditor.js</code></p>
  
  <p>I'm not sure how to go about changing this.  Everything else seems to be working correctly as my Resource URL's and Upload Directories look correct.</p>
  
  <p>Thanks in advance</p>
  
  <p><strong>8/15</strong></p>
  
  <p>After some further sleuthing I discovered my production site running 4.7.20 reports:
  [civicrm.root]  <a href="https://focusdc.org/sites/focusdc.org/modules/civicrm/" rel="nofollow noreferrer">https://focusdc.org/sites/focusdc.org/modules/civicrm/</a></p>
  
  <p>whilte my staging server running 4.7.23 reports:
  [civicrm.root] <a href="http://staging.focusdc.org/sites/focus/sites/focusdc.org/modules/civicrm/" rel="nofollow noreferrer">http://staging.focusdc.org/sites/focus/sites/focusdc.org/modules/civicrm/</a></p>
  
  <p>They have identical civicrm.settings.php outside of the one having SSL and one referencing "staging". </p>
  
  <p>Did the $civicrm_root settings change in civicrm.settings.php between 4.7.20 and 4.7.23? Any other thoughts?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-08T19:37:08.637Z
Comments.Text: To further clarify, I previously was able to get the wysiwyg working (although without the configuration) in 4.7.20 by applying the patch here. https://github.com/civicrm/civicrm-core/pull/9458/files
Comments.UserDisplayName: jansmath3
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-11T14:00:18.853Z
Comments.Text: Can you re-check your resource URL setting and clear all caches?
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-15T19:44:15.350Z
Comments.Text: Thanks for the help Coleman.  I've tried all possible combinations I could think of using absolute URLs and URL variables and nothing works.  Still redirecting to the wrong subdirectories. The extra "/sites/focus" seems to be the culprit.
Comments.UserDisplayName: jansmath3
Tags: <multisite><wysiwyg><drupal-multi-site>
Title: CKEditor Multi-Site Configuration Problem
ThreadText: # CKEditor Multi-Site Configuration Problem
  
  (Asked by: username_0 on 2017-08-08)
  
  After updating to 4.7.23 from 4.7.20, I can now use the CKeditor Configuration and the changes are saved based on the changes made at <https://issues.civicrm.org/jira/browse/CRM-19303>, but the wysiwyg doesn't show up. The Drupal log error message reports "page not found" and that it is looking for
  
  `http://staging.focusdc.org/sites/focus/sites/focusdc.org/modules/civicrm/js/wysiwyg/crm.ckeditor.js`
  
  when I believe it should be looking for
  
  `http://staging.focusdc.org/sites/focusdc.org/modules/civicrm/js/wysiwyg/crm.ckeditor.js`
  
  I'm not sure how to go about changing this. Everything else seems to be working correctly as my Resource URL's and Upload Directories look correct.
  
  Thanks in advance
  
  **8/15**
  
  After some further sleuthing I discovered my production site running 4.7.20 reports:
  [civicrm.root] <https://focusdc.org/sites/focusdc.org/modules/civicrm/>
  
  whilte my staging server running 4.7.23 reports:
  [civicrm.root] <http://staging.focusdc.org/sites/focus/sites/focusdc.org/modules/civicrm/>
  
  They have identical civicrm.settings.php outside of the one having SSL and one referencing "staging".
  
  Did the $civicrm\_root settings change in civicrm.settings.php between 4.7.20 and 4.7.23? Any other thoughts?
  
  **Tags:** multisite, wysiwyg, drupal-multi-site
  
  > **Comments:**
  > **username_0**: To further clarify, I previously was able to get the wysiwyg working (although without the configuration) in 4.7.20 by applying the patch here. https://github.com/civicrm/civicrm-core/pull/9458/files  
  > **username_1**: Can you re-check your resource URL setting and clear all caches?  
  > **username_0**: Thanks for the help username_1.  I've tried all possible combinations I could think of using absolute URLs and URL variables and nothing works.  Still redirecting to the wrong subdirectories. The extra "/sites/focus" seems to be the culprit.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2017-08-16. Score: 1 | Accepted answer
  
  Thanks Jon G, for steering me in the right direction and hopefully this might help someone down the line.
  
  I probably wasn't particularly clear in my description in that I run a Drupal multisite but CiviCRM is still running under it's original single site (although this is bringing me a step closer to having all the sites run CiviCRM especially for webform integration).
  
  Accordingly, I was still hosting CiviCRM in the 'subsite'/modules directory. When I moved the module into the /all/modules and changed the $civicrm\_root any inconsistencies in the Directories and URL Resources corrected themselves.
  
  Now the CKEditor Configuration works!
  
  > **Comments:**
  > **username_2**: Feel free to mark your own answer as "Accepted"; this will help future folks.  Thanks for reporting back!  
  
  ---
  
  ### Answer by username_2 on 2017-08-15. Score: 1
  
  You should be able to fix this by [defining the CIVICRM\_CMSDIR constant](https://civicrm.stackexchange.com/questions/19881/how-can-i-fix-civicrm-root-variable-on-an-addon-domain/19958#19958). Since you're using multi-site, you'll need to define that on a per-site basis.
  
  > **Comments:**
  > **username_0**: Thanks Jon for the reply.  I've tried all angles of implementing the CIVICRM_CMSDIR constant and it does help correct the cms directory root, which will probably alleviate some pain in the future. However, it doesn't fix the extra "/sites/focus" when ckeditor is loading.  
  > **username_2**: Do you have a symlink somewhere in your $civicrm_root?  
  > **username_0**: I do have a symlink from the /var/lib/mysql to the location of mysql databases.  Could that cause it?  
  
  ---
  
  