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.
Had a problem where turning on "Optimize Javascript" in admin/settings/performance prevented my wysiwyg-enabled ckeditor from showing.
Turns out the least intrusive fix is to disable preprocessing for the ui.dialog plugin.
Here is my workaround/diff:
Index: jquery_ui.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jquery_ui/jquery_ui.module,v
retrieving revision 1.6.2.2
diff -r1.6.2.2 jquery_ui.module
79c79,85
< drupal_add_js($js_path);
---
> switch($file) {
> case 'ui.dialog':
> drupal_add_js($js_path,'module','header',false,true,false);
> break;
> default:
> drupal_add_js($js_path);
> }
Comment | File | Size | Author |
---|---|---|---|
jquery_ui.patch | 464 bytes | pillarsdotnet |
Comments
Comment #1
sunUnfortunately, this attempt won't fix. CKEditor has to be able to work with aggregated JS. Alternatively, Wysiwyg module has to cope for CKEditor's inabilities. But jQuery UI module cannot blatantly make this assumption (of having to be compatible with CKEditor) for all users of the jQuery UI module.