Closed (fixed)
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Feb 2010 at 14:32 UTC
Updated:
27 Sep 2011 at 14:51 UTC
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
Comment #1
wwalc commentedMake sure that $scripts is printed before $closure in your theme:
See http://api.drupal.org/api/drupal/modules--system--page.tpl.php :
Comment #2
wwalc commentedComment #4
sachbearbeiter commentedfor D7:
<?php print $page_bottom; ?>has to be below your scripts call