Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I cannot get the CKEditor module to work with the Zurb theme. The CKEditor module works fine with other themes, just not with Zurb. I love the Zurb theme, but the CKEditor is a crucial element for my site, so it would be great if they played nice together.
This is the error I get according to Firebug when trying to load a Zurb-themed page with a CKEditor textarea on it:
TypeError: Drupal.settings.ckeditor is undefined
window.CKEDITOR_BASEPATH = Drupal.settings.ckeditor.editor_path;
(line 5 of ckeditor/includes/ckeditor.utils.js)
Comments
Comment #0.0
mamanerd CreditAttribution: mamanerd commentedClarify the bug
Comment #1
mamanerd CreditAttribution: mamanerd commentedOkay, I figured it out. The CKEditor javascript files need to be called after the Zurb files or else CKEditor breaks. Zurb, by default, puts ALL the javascript files in the footer, including some after the CKEditor files. To fix the issue, I moved all the files except the CKEditor files to the header.
In my Zurb subtheme's template.php, I did this:
Comment #2
chrisjlee CreditAttribution: chrisjlee commentedNice work mamanerd! I'll make a note to add this nugget of info to the project page or documenation somewhere. Thanks for reporting the issue.
Comment #3
chrisjlee CreditAttribution: chrisjlee commentedchange component
Comment #4
ishmael-sanchez CreditAttribution: ishmael-sanchez commentedAdded a link on the project page https://drupal.org/project/zurb-foundation.
Comment #5.0
(not verified) CreditAttribution: commentedFurther clarify the bug