The latest stable build of CKEditor breaks in Drupal 7.21. After installing a new Drupal 7.21 website, I installed the CKEditor module to sites/all/modules/ckeditor. I installed the CKEditor library files to sites/all/libraries/ckeditor. I enabled the module and proceeded to admin/config/content/ckeditor. I created a custom profile for the Full HTML text format. Unfortunately, my customizations to the CKEditor toolbar were not persisted and did not display on CKEditor instances throughout the Drupal admin area (e.g. page edit screens). I did not see any apparent JS console errors. This issue happens with and without JS and CSS aggregation.
The CKEditor module and library worked fine in Drupal 7.20. I only noticed this issue after installing a new 7.21 website. Reverting the CKEditor library files to v3.6.6.1 resolved the issue temporarily.
Comment | File | Size | Author |
---|---|---|---|
#6 | ckeditor.jpg | 42.27 KB | MrPaulDriver |
#3 | Download | CKEditor.com-1.jpg | 37 KB | mrmeech |
#3 | Download | CKEditor.com-2.jpg | 40.01 KB | mrmeech |
Comments
Comment #1
mthomas CreditAttribution: mthomas commentedI just tried to replicate this using a fresh install of 7.21, CKEditor 7.x-1.12, and library version 4.1. It seems like some of my customizations to the toolbar show up, others don't.
There's no discernable pattern to which buttons will appear and which won't, it doesn't seem to be a caching/aggregation problem, and no console errors show up. For instance, the "format" dropdown will show up, the "font" and "style" dropdowns will not.
I tried using different versions of jQuery: 1.8 seems to break my ability to configure the editor, but there seems to be no difference between 1.5 and 1.7.
Comment #2
Crawford Russell CreditAttribution: Crawford Russell commentedYes, I've had the same problem. Not a smart move to implement yesterday's release. I've fixed it by going back to version 3.6.6.1 of the plug-in. But wasted a day thinking I was just being thick. Better testing before release please!!
Comment #3
mrmeech CreditAttribution: mrmeech commentedA few other things to maybe look into:
Are you guys using the "full" version of the CKEditor plugin? (see attached screenshots) ... The default setting on the site is to download the "Standard package", and using the "Full Package" fixed missing editor buttons.
Also if you have anything like modsecurity installed on the server, check that it's not stepping in and preventing the editor from loading properly. I had a site where this was the issue and was causing odd behavior.
Comment #4
mthomas CreditAttribution: mthomas commentedUsing the "full" library fixed it for me. Thanks!
Comment #5
MrPaulDriver CreditAttribution: MrPaulDriver commentedI am using the 'full' library but still have the problem.
Blank buttons seem to function, but they do not have any icons.
Comment #6
MrPaulDriver CreditAttribution: MrPaulDriver commentedSee screenshot
Comment #7
mrmeech CreditAttribution: mrmeech commentedMrPaulDriver, I'm seeing the same thing that's in your screenshot. Maybe something changed in the latest ckeditor plugin PNG icon file causing some of the button background offsets to be incorrect? hmm
Comment #8
MrPaulDriver CreditAttribution: MrPaulDriver commentedI've tried many permutations today and not found a solution.
For the moment I've rolled back to the version 3 library and life is good again.
Comment #9
jrearickI had the same issue with the missing buttons. I thought I was going insane. Once I installed the full ckeditor package, I also ran into the blank/empty buttons with no icons. Clearing cache didn't solve the problem. I finally figured out how to work around it.
I hope this helps as a work around.
Comment #10
mrmeech CreditAttribution: mrmeech commentedUnfortunately the trick in #9 did not do it's magic for me. On one site using ckeditor 4.1 is totally fine, and on another i have this blank button issue.
Comment #11
HarryAscent CreditAttribution: HarryAscent commentedsubscribe to, just do not have the text on buttons
Comment #12
wwalc CreditAttribution: wwalc commentedButtons do not appear at all:
Make sure that you have downloaded the Full version of CKEditor ("standard" is offered as the default option)
It looks like all buttons are there, but blank buttons appear in the toolbar
You have replaced CKEditor with a newer version, but your browser is still using the old file named "icons.png". Clear the browser cache (F5 is not enough).
If it does not help, check the browser that you never use (e.g. IE) and open your site there. Clear cache there as well (in case you used it in the past while being drunk :D).
If it still does not work... check the Global Profile and see where the CKEditor library is located. If CKEditor module is the only module in Drupal that is using this library (should be I guess), then do the following:
- place CKEditor in sites\all\libraries\ckeditor\4.1 (always use an unique version number, hash etc. when replacing the library for the second time)
- set path to CKEditor accordingly (%l/ckeditor/4.1)
- clear Drupal cache, browser cache
and it should work now.
Comment #13
HarryAscent CreditAttribution: HarryAscent commentedthanks for the reply wwalc it really is the case, I though it is itself the cache and the button appears.
Comment #14
naidim CreditAttribution: naidim commentedThank you mrmeech, I didn't have the full version. After updating I also experienced the problem with the icons not appearing/appearing in the wrong places but buttons worked and figured (rightly) it was just the browser cache.
Comment #15
mrmeech CreditAttribution: mrmeech commentedClosing, as this doesn't seem to be an issue for anyone anymore and both D7 and CKEditor are many versions away from the version this issue pertains to.