This was first reported in http://drupal.org/node/1006230#comment-3876514, but it has nothing to do with that issue.
There seems to be a problem with the aggregated version of ckeditor.js. It throws some javascript errors and because of that the whole aggregated file is not executed anymore. This could also be the cause for #1019136: adjusting ckeditor profiles impossible, because that is exactly what I experienced with the ckeditor module and javascript aggregation enabled.
The only solution that I see right now is to set $preprocess to FALSE for ckeditor.js, and since we are adding a new js file in head (by not aggregating it), we might as well move it in the footer scope to benefit from a slight performance improvement.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1020820-disable_js_aggregation_for_ckeditor.patch | 2.59 KB | amateescu |
Comments
Comment #1
amateescu commentedAnd the patch :)
Comment #2
dczepierga commentedI check it and everything works fine now. I commit it to CVS.
Again really thx for help.
Comment #3
dczepierga commentedI also fix problem with editor in profile edit when js aggregation is enabled. Changes commited to CVS.
Comment #4
amateescu commenteddczepierga, my pleasure :)
Is there a reason for which you didn't include this part in ckeditor.module from my patch:
This was the first part of the fix, beacause drupal can't aggregate a file if it's path starts with a '/'. Also, with aggregation disabled, the output of drupal_add_js() is:
and it should be:
For example, the path for ckeditor.utils.js is correct:
Powered by Dreditor.
Comment #6
hctomAny news on this? I'm still having trouble with slashes at the front of the editor paths :(
I'm using CKEditor 7.x-1.6 and when editing my feratures export code and removing the leading slash, everything works fine.... until I open the global profile form and save it. Then the leading slash gets added again.
Comment #7
dczepierga commented@hctom, pls try to update to last DEV version of CKEditor module. If after update u still have this problem, pls open new issue and describe your problem there.
And pls not open old fixed issue, which was closed neraly 1 year ago!!
Greetings