Body: <p>I am running on the latest version of CiviCRM, 5.17, and when I go into CiviMail to create an email message the HTML wysiwyg editor does not load. I get a console error saying
  <code>CRM.wysiwyg._create is not a function</code></p>
  
  <p>If I put a debugger right before the line I can see the the CRM.wysiwyg object does not have ._create method but it does have a .create() method.  If I change the code to use the .create() method then it seems to loop for ever and the tab stops responding.  </p>
  
  <p>I had this issue on the previous version of civicrm, 5.13, which is why I tried the upgrade to 5.17.</p>
  
  <p>There is a message during upgrade about updating the templates but when I click the link for more info it take me to a page saying the documents have moved. </p>
  
  <p>I do have the ckEditor enabled on the site.</p>
  
  <p>I am running on wordpress 5.0.4.<br>
  I did reset the cache and clear the templates_c folder but neither cured it.<br>
  Any suggestions would be appreciated.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-07T05:16:49.270Z
Comments.Text: Have you cleared the cache? Tried in another browser? Ad-blocker enabled?
Comments.UserDisplayName: Zachary
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-07T07:41:51.437Z
Comments.Text: Can you check resource url?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-07T14:31:33.120Z
Comments.Text: I did clear the cache and the templates_c folder.  I have tried on multiple browser and is always the same error.  I dont have an ad-blocker enabled.
Comments.UserDisplayName: civi5
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-07T14:37:32.707Z
Comments.Text: As for the resource urls they are all set. I dont see any other errors in the web console.  It seems the API for wysiwyg is not the same for some reason.  Any suggestions on where to look for ideas?
Comments.UserDisplayName: civi5
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-07T15:52:00.153Z
Comments.Text: I have made some more progress on this issue.  I found that my theme was redirecting 404s to the login page.  Once I disabled that then I was able to find that I am getting a 404 loading crm.ckeditor.  I found the reference in `Core/resources.php` It seems the file is looking to be loaded from `"[civicrm.root]/js/wysiwyg/crm.ckeditor.js`.   In my settings file I have civicrm_root pointing to the base directory in `/var/www....`  So it tries to load that file as the URL with the /var/www in the URL.  If I hard code that reference to the file location it works.  Is there a relative var I can use
Comments.UserDisplayName: civi5
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-08T18:28:57.820Z
Comments.Text: what does your civicrm/admin/setting/url?reset=1 have defined in resource URL?
Comments.UserDisplayName: Zachary
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-10T01:43:45.430Z
Comments.Text: That link does not specifically work. The WP link is wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fadmin%2Fsetting%2Furl&reset=1 so that might be part of the issue I suppose.   
  
  The Resource Url itself has: wp-content/plugins/civicrm/
Comments.UserDisplayName: civi5
Tags: <civimail><ckeditor><wysiwyg>
Title: Email Template HTML WYSIWYG does not load
ThreadText: # Email Template HTML WYSIWYG does not load
  
  (Asked by: username_0 on 2019-09-07)
  
  I am running on the latest version of CiviCRM, 5.17, and when I go into CiviMail to create an email message the HTML wysiwyg editor does not load. I get a console error saying
  `CRM.wysiwyg._create is not a function`
  
  If I put a debugger right before the line I can see the the CRM.wysiwyg object does not have .\_create method but it does have a .create() method. If I change the code to use the .create() method then it seems to loop for ever and the tab stops responding.
  
  I had this issue on the previous version of civicrm, 5.13, which is why I tried the upgrade to 5.17.
  
  There is a message during upgrade about updating the templates but when I click the link for more info it take me to a page saying the documents have moved.
  
  I do have the ckEditor enabled on the site.
  
  I am running on wordpress 5.0.4.  
  I did reset the cache and clear the templates\_c folder but neither cured it.  
  Any suggestions would be appreciated.
  
  **Tags:** civimail, ckeditor, wysiwyg
  
  > **Comments:**
  > **username_1**: Have you cleared the cache? Tried in another browser? Ad-blocker enabled?  
  > **username_2**: Can you check resource url?  
  > **username_0**: I did clear the cache and the templates_c folder.  I have tried on multiple browser and is always the same error.  I dont have an ad-blocker enabled.  
  > **username_0**: As for the resource urls they are all set. I dont see any other errors in the web console.  It seems the API for wysiwyg is not the same for some reason.  Any suggestions on where to look for ideas?  
  > **username_0**: I have made some more progress on this issue.  I found that my theme was redirecting 404s to the login page.  Once I disabled that then I was able to find that I am getting a 404 loading crm.ckeditor.  I found the reference in `Core/resources.php` It seems the file is looking to be loaded from `"[civicrm.root]/js/wysiwyg/crm.ckeditor.js`.   In my settings file I have civicrm_root pointing to the base directory in `/var/www....`  So it tries to load that file as the URL with the /var/www in the URL.  If I hard code that reference to the file location it works.  Is there a relative var I can use  
  > **username_1**: what does your civicrm/admin/setting/url?reset=1 have defined in resource URL?  
  > **username_0**: That link does not specifically work. The WP link is wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fadmin%2Fsetting%2Furl&reset=1 so that might be part of the issue I suppose.     The Resource Url itself has: wp-content/plugins/civicrm/  
  
  ---
  
  ## 0 answers
  
  