I have a site where I am using CKEditor with the CKEditor 4.0.1.
Advanced CSS/JS Aggregation breaks the CKEditor.

To try to remedy the situation I go to the JS Compression settings page where I disable js compression on all of the CKEditor js files:
- sites/all/modules/ckeditor/ckeditor.config.js
- sites/all/modules/ckeditor/includes/ckeditor.admin.js
- sites/all/modules/ckeditor/includes/ckeditor.utils.js
- sites/all/modules/ckeditor/includes/jqueryUI/jquery-ui.min.js
- sites/all/modules/ckeditor/includes/jqueryUI/jquery.ui.sortable.min.js
- sites/all/modules/ckeditor/includes/jqueryUI/jquery.ui.widget.min.js
- sites/all/modules/ckeditor/includes/jqueryUI/sort.js

It still does not work.
To get CKEditor working again I turn off a big chunk of the module's functionality.
- (off) AdvAgg Bundler
- (on) AdvAgg CDN CSS
- (on) AdvAgg CDN Javascript
- (on) AdvAgg Compress CSS
- (off) AdvAgg Compress Javascript
- (off) AdvAgg Modifier
- (on) Advanced CSS/JS Aggregation

On another site I am using CKEditor with CKEditor 4.1.2
It all works.

I go to the JS Compression settings page. There is only 1 CKEditor js file.
- sites/all/modules/ckeditor/includes/ckeditor.utils.js
The js is obviously a lot simpler.

Is there a way to make Advanced CSS/JS Aggregation work with the older CKEditor 4.0.1?
I do not want to upgrade the problem site to CKEditor 4.1.2 because of other issues.

This module is awesome, but CKEditor has some pretty complex js and is not hard to break.
Thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikeytown2’s picture

I'm going to test it using 4.0.3 or do I need to use 4.0.1? http://ckeditor.com/download/releases

mikeytown2’s picture

On the AdvAgg Modifier admin page admin/config/development/performance/advagg/mod set "Move JS to the footer" to either "disabled" or "All but JavaScript Libraries". Also noticed that jsmin+ took a long time to compress ckeditor/ckeditor/ckeditor.js and actually gave up because the ratio was bad (it is already minified).

mikeytown2’s picture

Version: 7.x-2.0-rc3 » 7.x-2.x-dev
Component: CSS/JS Compression » AdvAgg Modifier
Category: support » bug
Status: Active » Fixed
FileSize
2.61 KB

Following patch has been committed. This will allow for CKEditor to work when "All" is selected under "Move JS to the footer".

dadderley’s picture

@mikeytown2

On the AdvAgg Modifier admin page admin/config/development/performance/advagg/mod set "Move JS to the footer" to either "disabled" or "All but JavaScript Libraries".
That did it.

There are a lot of options with this module.
I wish That I understood it better than I do.

Thank you

Status: Fixed » Closed (fixed)

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