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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mthomas’s picture

I 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.

Crawford Russell’s picture

Yes, 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!!

mrmeech’s picture

A 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.

mthomas’s picture

Using the "full" library fixed it for me. Thanks!

MrPaulDriver’s picture

I am using the 'full' library but still have the problem.

Blank buttons seem to function, but they do not have any icons.

MrPaulDriver’s picture

FileSize
42.27 KB

See screenshot

mrmeech’s picture

MrPaulDriver, 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

MrPaulDriver’s picture

I'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.

jrearick’s picture

I 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 deleted or renamed the ckeditor library folder so that it doesn't detect.
  • Loaded the ckeditor config page admin/config/content/ckeditor and made sure the missing library message was there
  • Installed the full ckeditor library in the proper location
  • Reloaded the ckeditor config page again and maybe clear cache a few more times
  • Edit the profile and make sure things are good and save

I hope this helps as a work around.

mrmeech’s picture

Unfortunately 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.

HarryAscent’s picture

subscribe to, just do not have the text on buttons

wwalc’s picture

Buttons 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.

HarryAscent’s picture

thanks for the reply wwalc it really is the case, I though it is itself the cache and the button appears.

naidim’s picture

Thank 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.

mrmeech’s picture

Issue summary: View changes
Status: Active » Closed (fixed)

Closing, 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.