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.
It appears that FCKeditor is not compatible with the admins performance JSMin option turned on. The block appears in FF possibly other browsers as well except IE7. The text area becomes a very small text box like that which is described in the modules troubleshooting tips, however the remedies did not apply in this case. Once JSMin is enabled the FCKeditor enabled text box becomes a small text box. Disabling the JSMin performance option allows FCKEditor to function as expected.
Any tips to allow the combination to function together at this time?
Comments
Comment #1
wwalc CreditAttribution: wwalc commentedOk... I did try to reproduce it in Drupal 6 and I think I found what's the problem, fortunately it seems it is not a big deal and that the same workaround will work in Drupal 5.
JSMin strips comments in javascript files, also conditional compilation statements, as a result in FCKeditor_IsCompatibleBrowser() the following code:
(which evaluates to true in IE)
is simply changed into
Thus, the following code that is used to detect IE:
is not executed.
Because fckeditor.utils.js is loaded after fckeditor.js (which contains the definition of FCKeditor_IsCompatibleBrowser), it is possible to overwrite this function in fckeditor.utils.js.
So, the final solution is:
- open sites/all/modules/fckeditor/fckeditor.utils.js
- paste this code at the end of file:
(I hope it works correctly)
- clear cached data
Please check whether it works as expected and let me know.
Comment #2
wwalc CreditAttribution: wwalc commentedFixed in CVS. Check the dev release tomorrow.
Comment #3
rhylos CreditAttribution: rhylos commentedDev fix tested on system. Looks good. Thank you!