Answers.Body: <p>As Pradeep is intimating, a lot of folks have seen this because of a multilingual schema needing rebuilding.  <code>drush cvapi system.rebuildmultilingualschema</code> could fix that.  Otherwise you end up with "undefined" as the base URL of your Resource URL, similar to <a href="https://civicrm.stackexchange.com/a/25863/12">this</a>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-01T16:45:56.190Z
Answers.Text: Nope, not multi-lingual. That problem shows up all over the place!
Answers.UserDisplayName: Alan Dixon
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-01T14:44:33.647Z
Answers.LastActivityDate: 2018-08-01T14:44:33.647Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>Do you have the <a href="https://www.drupal.org/project/boxes" rel="nofollow noreferrer">Boxes</a> contrib module enabled on your Drupal site?  If so, your problem may be this:</p>
  
  <p><a href="https://www.drupal.org/project/boxes/issues/2175471" rel="nofollow noreferrer">Issue #2175471: Incompatible with CiviCRM - CKEditor WYSIWYG does not load</a></p>
  
  <p>There is a patch available from the above link that resolves the issue.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-06T19:07:55.400Z
Answers.Text: Awesome, that was it! Totally not what I was looking for or expecting in a solution. Thank you.
Answers.UserDisplayName: Alan Dixon
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-02T20:12:37.343Z
Answers.LastActivityDate: 2018-08-02T20:12:37.343Z
Answers.UserDisplayName: happysnowmantech
Body: <p>After an upgrade from 4.7.28 to 5.3.1:</p>
  
  <ol>
  <li>Text areas (e.g. editing an event description) have a blank part of the screen in place of the normal editing box.</li>
  <li>The configure page of the ckeditor is also broken.</li>
  <li>Both of those pages show a console error:
  <code>
  Uncaught TypeError: Cannot read property '17' of undefined
      at Object.keystrokeToArray (ckeditor.js:36)
      at Object.keystrokeToString (ckeditor.js:35)
      at CKEDITOR.ui.button.render (ckeditor.js:636)
      at G (ckeditor.js:647)
      at a. (ckeditor.js:649)
      at a.h (ckeditor.js:10)
      at a. (ckeditor.js:11)
      at a.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js:13)
      at b (ckeditor.js:326)
      at a. (ckeditor.js:325)
  </code></li>
  <li>They also show console errors of missing css files, which appear to be missing from the monoo-lisa skin directory of the ckeditor directory of my drupal libraries, i.e. not the one civicrm has bundled or should use. I presume this is just a side effect of the above error.</li>
  </ol>
  
  <p>I have a very similar site that went through the same upgrade that does not have this issue (and both sites use Drupal's ckeditor via the wysiwyg module). This site notably has a very large CRM variable defined in javascript, but it doesn't show any other errors.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-31T20:19:38.293Z
Comments.Text: Is this a multi-lingual site?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-31T21:16:23.103Z
Comments.Text: Seamus suggests "i would be trying to bust every possible cache possible"
Comments.UserDisplayName: KarinG - Semper IT
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-31T21:26:26.267Z
Comments.Text: including any varnish caches
Comments.UserDisplayName: user4278
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-01T16:50:18.630Z
Comments.Text: Yes, caches cleared ad nauseum. Varnish not a bad guess since it might be doing some more aggressive caching for some js, but nope. Debugging in that ckeditor script to figure out which js config variable is getting set properly is probably the key, but I was hoping someone would recognize that stack trace ...
Comments.UserDisplayName: Alan Dixon
Tags: <upgrade><ckeditor>
Title: Unable to use ckeditor after upgrade to 5.3.1
ThreadText: # Unable to use ckeditor after upgrade to 5.3.1
  
  (Asked by: username_0 on 2018-07-31)
  
  After an upgrade from 4.7.28 to 5.3.1:
  
  1. Text areas (e.g. editing an event description) have a blank part of the screen in place of the normal editing box.
  2. The configure page of the ckeditor is also broken.
  3. Both of those pages show a console error:
     `Uncaught TypeError: Cannot read property '17' of undefined
     at Object.keystrokeToArray (ckeditor.js:36)
     at Object.keystrokeToString (ckeditor.js:35)
     at CKEDITOR.ui.button.render (ckeditor.js:636)
     at G (ckeditor.js:647)
     at a. (ckeditor.js:649)
     at a.h (ckeditor.js:10)
     at a. (ckeditor.js:11)
     at a.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js:13)
     at b (ckeditor.js:326)
     at a. (ckeditor.js:325)`
  4. They also show console errors of missing css files, which appear to be missing from the monoo-lisa skin directory of the ckeditor directory of my drupal libraries, i.e. not the one civicrm has bundled or should use. I presume this is just a side effect of the above error.
  
  I have a very similar site that went through the same upgrade that does not have this issue (and both sites use Drupal's ckeditor via the wysiwyg module). This site notably has a very large CRM variable defined in javascript, but it doesn't show any other errors.
  
  **Tags:** upgrade, ckeditor
  
  > **Comments:**
  > **username_1**: Is this a multi-lingual site?  
  > **username_2**: Seamus suggests "i would be trying to bust every possible cache possible"  
  > **username_3**: including any varnish caches  
  > **username_0**: Yes, caches cleared ad nauseum. Varnish not a bad guess since it might be doing some more aggressive caching for some js, but nope. Debugging in that ckeditor script to figure out which js config variable is getting set properly is probably the key, but I was hoping someone would recognize that stack trace ...  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_5 on 2018-08-02. Score: 4 | Accepted answer
  
  Do you have the [Boxes](https://www.drupal.org/project/boxes) contrib module enabled on your Drupal site? If so, your problem may be this:
  
  [Issue #2175471: Incompatible with CiviCRM - CKEditor WYSIWYG does not load](https://www.drupal.org/project/boxes/issues/2175471)
  
  There is a patch available from the above link that resolves the issue.
  
  > **Comments:**
  > **username_0**: Awesome, that was it! Totally not what I was looking for or expecting in a solution. Thank you.  
  
  ---
  
  ### Answer by username_4 on 2018-08-01. Score: 1
  
  As username_1 is intimating, a lot of folks have seen this because of a multilingual schema needing rebuilding. `drush cvapi system.rebuildmultilingualschema` could fix that. Otherwise you end up with "undefined" as the base URL of your Resource URL, similar to [this](https://civicrm.stackexchange.com/a/25863/12).
  
  > **Comments:**
  > **username_0**: Nope, not multi-lingual. That problem shows up all over the place!  
  
  ---
  
  