This is a case of CKEditor trying to do the right thing with outputting scripts in the footer. On line 540 of ckeditor.module this line:

drupal_add_js($module_drupal_path .'/includes/ckeditor.utils.js', 'module', 'footer');

Should be changed to

drupal_add_js($module_drupal_path .'/includes/ckeditor.utils.js', 'module');

Or the CKEditor js gets put above jquery.js and drupal.js. CKEditor can't reference the Drupal object if this happens at least with the zen theme when the $scripts tag is moved from the header to the footer.

Comments

wwalc’s picture

Status: Active » Postponed (maintainer needs more info)

Make sure that $scripts is printed before $closure in your theme:

  <?php print $scripts; ?>
  <?php print $closure; ?>

See http://api.drupal.org/api/drupal/modules--system--page.tpl.php :

$closure: Final closing markup from any modules that have altered the page. This variable should always be output last, after all other dynamic content.

wwalc’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

sachbearbeiter’s picture

for D7: <?php print $page_bottom; ?> has to be below your scripts call