CRM-16246 - Load ckeditor in "page-header" instead of "html-header".
authorTim Otten <totten@civicrm.org>
Tue, 7 Apr 2015 06:36:21 +0000 (23:36 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 7 Apr 2015 06:36:21 +0000 (23:36 -0700)
html-header goes through Drupal aggregation, which breaks ckeditor.

Civi/Angular/Page/Main.php

index 854f0225836888136e7373e0dd4249bde92db938..ed7140751f71d2a6997a85e95cedceca8a06a86b 100644 (file)
@@ -84,7 +84,7 @@ class Main extends \CRM_Core_Page {
     $this->res->addScriptFile('civicrm', 'bower_components/angular-route/angular-route.min.js', 110, '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, 'html-header', FALSE);
+    $this->res->addScriptFile('civicrm', 'packages/ckeditor/ckeditor.js', 100, 'page-header', FALSE);
 
     $config = \CRM_Core_Config::singleton();
     if ($config->debug) {