Answers.Body: <p>I also had this problem.  It happened ~95% of the time but not 100% of the time, leading me to believe there's a race condition present.  It started when I upgraded from Civi 5.12.1 to 5.12.3, but you experienced this problem sooner and I'm guessing it's tied to Drupal 8.6.15.  It also happened on my test site but not my dev site (haven't pushed to the live site yet for obvious reasons).</p>
  
  <p>I was able to solve it by uninstalling/reinstalling the core <code>ckeditor</code> module via <code>drush</code>.  However, I'm not sure <em>why</em> that fixes it, but I've been unable to trip the issue.  In my debugging, it certainly seems that Civi's CKEditor is loading the paths of the Drupal CKEditor.  I'm not sure why though.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-23T16:51:37.247Z
Answers.LastActivityDate: 2019-04-23T16:51:37.247Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>Part of the install process for drupal 8 currently involves copying some things to the libraries folder. If you used the composer method (<a href="https://gitlab.com/roundearth/drupal-civicrm-project" rel="nofollow noreferrer">https://gitlab.com/roundearth/drupal-civicrm-project</a>) it gets handled mostly automatically, but you might still need to set some settings in civicrm.settings.php. See <a href="https://hq.megaphonetech.com/projects/commons/wiki/CiviCRM_for_Drupal_8_installation_notes" rel="nofollow noreferrer">https://hq.megaphonetech.com/projects/commons/wiki/CiviCRM_for_Drupal_8_installation_notes</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-22T20:13:00.550Z
Answers.Text: Our Organization did not use the round-earth installation, I can check with a colleague who set it up on how exactly he set it up. However, At present the components it is trying to call from the Drupal core are located in web/libraries/civicrm/bower_components/ckeditor. I tried to make the changes to the civicrm.settings.php file in the link you provided, but this caused other components to not be found.
Answers.UserDisplayName: Sophia_Connell_NFB
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-22T20:27:38.857Z
Answers.Text: It sounds like it might be a composer-based install, so maybe all you need to do is copy the other components. The old manual method had a script at https://lab.civicrm.org/dev/drupal/issues/9 which should still work to copy the other components to libraries, just maybe make a backup of libraries/civicrm in case something gets overwritten you don't want overwritten.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-26T14:47:33.550Z
Answers.Text: I ran the script in the link your provided and set the web root to {cms.root]/libraries/civicrm. To no avail Civi still tires to access components from cms.rootcore/assets/vendor/ckeditor/skins/moono/editor.css, cms.root/core/assets/vendor/ckeditor/styles.js"  and cms.root/core/assets/vendor/ckeditor/skins/moono/editor.css
Answers.UserDisplayName: Sophia_Connell_NFB
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-26T16:18:30.433Z
Answers.Text: If you go to admin - system settings - directories, then click the blue question mark icon in the green description area at the top it will display what it thinks you have. That might provide a hint.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-26T18:02:53.587Z
Answers.Text: My  cms root looks fine, to confirm my civiroot should look like this?
  [civicrm.root] web.root/vendor/civicrm/civicrm-core
Answers.UserDisplayName: Sophia_Connell_NFB
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-26T18:23:56.960Z
Answers.Text: Does it say "web.root" literally or is that a file system folder? And/or is stackexchange messing up the brackets? Were you able to set the four lines in civicrm.settings.php as described in https://hq.megaphonetech.com/projects/commons/wiki/CiviCRM_for_Drupal_8_installation_notes?
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-26T18:36:46.597Z
Answers.Text: Sorry, Its var/www/site/web as web.root.  I followed your steps, and it is still looking in web/core/assets not under libraries/civicrm. despite me defining it in civicrm.settings like in your link.
Answers.UserDisplayName: Sophia_Connell_NFB
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-26T19:17:27.350Z
Answers.Text: Maybe try posting in https://chat.civicrm.org in the drupal channel. It seems like it might need some more in-depth troubleshooting and is a better place for back-and-forth.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-21T19:24:29.503Z
Answers.LastActivityDate: 2019-03-21T19:24:29.503Z
Answers.UserDisplayName: Demerit
Body: <p>So I'm having a weird issue where when trying to create a new mailing or event. The wysiwyg editor does not show up, instead the html editor appears as blank. There are errors in console (404 errors) where the page is trying to load ckeditor/skins/moono/skin.js. However, it is trying to load it from the web root via the Drupal core.(['web_root']core/assets/vendor/ckeditor/skins/moono/skin.js)</p>
  
  <p>This is the same with other assets like the editor.css file.</p>
  
  <p>Naturally these assets do not exist in the Drupal core ck-editor directory. Is there a way to direct these to the Civi resources (that do exist) or fix these error. </p>
  
  <p>I ran into this after fixing the Error name not resolved error with crm.ckeditor.js.  I followed the guide steps in this Civi stack exchange here. </p>
  
  <p><a href="https://civicrm.stackexchange.com/questions/25922/crm-ckeditor-js-not-found?rq=1">crm.ckeditor.js not found</a></p>
  
  <p>This allowed for the crm.ckeditor.js script to be found, but now it cannot find the aforementioned  assets. Which previously were not being loaded or called.  </p>
  
Tags: <ckeditor><drupal-8>
Title: CiviCRM CK editor trying to access Skins.js, and CSS resources from the Drupal 8 core assets instead of the Civi directories
ThreadText: # CiviCRM CK editor trying to access Skins.js, and CSS resources from the Drupal 8 core assets instead of the Civi directories
  
  (Asked by: username_0 on 2019-03-21)
  
  So I'm having a weird issue where when trying to create a new mailing or event. The wysiwyg editor does not show up, instead the html editor appears as blank. There are errors in console (404 errors) where the page is trying to load ckeditor/skins/moono/skin.js. However, it is trying to load it from the web root via the Drupal core.(['web\_root']core/assets/vendor/ckeditor/skins/moono/skin.js)
  
  This is the same with other assets like the editor.css file.
  
  Naturally these assets do not exist in the Drupal core ck-editor directory. Is there a way to direct these to the Civi resources (that do exist) or fix these error.
  
  I ran into this after fixing the Error name not resolved error with crm.ckeditor.js. I followed the guide steps in this Civi stack exchange here.
  
  [crm.ckeditor.js not found](https://civicrm.stackexchange.com/questions/25922/crm-ckeditor-js-not-found?rq=1)
  
  This allowed for the crm.ckeditor.js script to be found, but now it cannot find the aforementioned assets. Which previously were not being loaded or called.
  
  **Tags:** ckeditor, drupal-8
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2019-04-23. Score: 1
  
  I also had this problem. It happened ~95% of the time but not 100% of the time, leading me to believe there's a race condition present. It started when I upgraded from Civi 5.12.1 to 5.12.3, but you experienced this problem sooner and I'm guessing it's tied to Drupal 8.6.15. It also happened on my test site but not my dev site (haven't pushed to the live site yet for obvious reasons).
  
  I was able to solve it by uninstalling/reinstalling the core `ckeditor` module via `drush`. However, I'm not sure *why* that fixes it, but I've been unable to trip the issue. In my debugging, it certainly seems that Civi's CKEditor is loading the paths of the Drupal CKEditor. I'm not sure why though.
  
  
  ---
  
  ### Answer by username_2 on 2019-03-21. Score: 0
  
  Part of the install process for drupal 8 currently involves copying some things to the libraries folder. If you used the composer method (<https://gitlab.com/roundearth/drupal-civicrm-project>) it gets handled mostly automatically, but you might still need to set some settings in civicrm.settings.php. See <https://hq.megaphonetech.com/projects/commons/wiki/CiviCRM_for_Drupal_8_installation_notes>
  
  > **Comments:**
  > **username_0**: Our Organization did not use the round-earth installation, I can check with a colleague who set it up on how exactly he set it up. However, At present the components it is trying to call from the Drupal core are located in web/libraries/civicrm/bower_components/ckeditor. I tried to make the changes to the civicrm.settings.php file in the link you provided, but this caused other components to not be found.  
  > **username_2**: It sounds like it might be a composer-based install, so maybe all you need to do is copy the other components. The old manual method had a script at https://lab.civicrm.org/dev/drupal/issues/9 which should still work to copy the other components to libraries, just maybe make a backup of libraries/civicrm in case something gets overwritten you don't want overwritten.  
  > **username_0**: I ran the script in the link your provided and set the web root to {cms.root]/libraries/civicrm. To no avail Civi still tires to access components from cms.rootcore/assets/vendor/ckeditor/skins/moono/editor.css, cms.root/core/assets/vendor/ckeditor/styles.js"  and cms.root/core/assets/vendor/ckeditor/skins/moono/editor.css  
  > **username_2**: If you go to admin - system settings - directories, then click the blue question mark icon in the green description area at the top it will display what it thinks you have. That might provide a hint.  
  > **username_0**: My  cms root looks fine, to confirm my civiroot should look like this? [civicrm.root] web.root/vendor/civicrm/civicrm-core  
  > **username_2**: Does it say "web.root" literally or is that a file system folder? And/or is stackexchange messing up the brackets? Were you able to set the four lines in civicrm.settings.php as described in https://hq.megaphonetech.com/projects/commons/wiki/CiviCRM_for_Drupal_8_installation_notes?  
  > **username_0**: Sorry, Its var/www/site/web as web.root.  I followed your steps, and it is still looking in web/core/assets not under libraries/civicrm. despite me defining it in civicrm.settings like in your link.  
  > **username_2**: Maybe try posting in https://chat.civicrm.org in the drupal channel. It seems like it might need some more in-depth troubleshooting and is a better place for back-and-forth.  
  
  ---
  
  