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
Comment | File | Size | Author |
---|---|---|---|
#3 | advagg-2088587-3-fix-js-settings-forced-footer.patch | 2.61 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedI'm going to test it using 4.0.3 or do I need to use 4.0.1? http://ckeditor.com/download/releases
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedOn 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).Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedFollowing patch has been committed. This will allow for CKEditor to work when "All" is selected under "Move JS to the footer".
Comment #4
dadderley CreditAttribution: dadderley commented@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