Hello,

I have installed CKEditor and configured the settings in Drupal, however, I cannot get the module to load when I go to create new content. Instead, the typical text box is missing and nothing is there. However, there is a link to "Switch to Plain Text".

Furthermore, upon initially installing CKEditor and going to create new content, the UI loaded for the rich text editor, however, it never loaded again after that. I was so confused by this that I deleted all the files and settings I had saved, cleared and cache, and reinstalled the module. Again, the CKEditor text box worked the first time I went to create new content, however, after that it never loaded again...

I am having the same issue in both FireFox and Chrome.

What do I have wrong?

Comments

bhead’s picture

I am having the same problem as well. I have verified the install. On top of that I have asked another webmaster to look at the files looking for an error. Neither of us can find the problem.

Pillhuhn’s picture

Yep, same happens to me... PLEASE FIX! :)

I would just like to add that clicking the 'Switch to plain text editor' doesn't do anything either...

FCKeditor works...

dczepierga’s picture

Status: Active » Postponed (maintainer needs more info)

Pls give more info... I can't reproduce this...

Write modules list with versions that u use or pls PM me and send address to your Drupal site with login and password - then i will check that and could said what are u doing wrong or where is a bug.

Greetings

gcybill’s picture

So, it is not just me.

I have used CKEditor on Drupal 6.19 few months ago, and it works!

But now when I setup for a new website using Drupal 6.20, with the same CKEditor module and core, it just doesn't work. Maybe there's some Drupal textarea-related update between Drupal 6.19 and 6.20 that put CKEditor into crash.

gcybill’s picture

Status: Postponed (maintainer needs more info) » Active

just a reply to update the status.

gcybill’s picture

One of the difference that I could spot between my CKEditor on Drupal 6.19 and on Drupal 6.20:

6.19 CKEditor UI Color Picker on CKPicker profile which show: "Click on the UI Color Picker button to set your color preferences.", doesn't show up on the 6.20 CKEditor.

This means the CK toolbar just doesn't affecting the textarea anymore.

I have tried installing CKEditor 3.4.2, 3.4.3, 3.5 using module ckeditor-6.x-1.2. None were working.

Hope this info helps.

wwalc’s picture

Does Firebug show any error?

gcybill’s picture

Category: bug » support

Firebug error on CKEditor profile page:

CKEDITOR is not defined
[Break On This Error] CKEDITOR.on( 'dialogDefinition', function( ev )
ckedit...in.js?K (line 1)

gcybill’s picture

Category: support » bug

Ok, I don't know if this help. PHP Version were different when I check each server config

My working CKEditor is on PHP version 5.2.13

My failing CKEditor is on 5.2.14

dczepierga’s picture

Category: support » bug
StatusFileSize
new1.32 KB

@gcybill, try this patch and pls write that solved your problem

Really thx for all informations, it's help a lot... :)

gcybill’s picture

well.. that solved the error status shown by Firebug.

but still the ckeditor toolbar didn't show just yet.

the problem: why the CKEditor is undefined.

dczepierga’s picture

Could u check source in profile editing and find that ckeditor.js is loaded?

Do u have cache or optimize (Performence section in Drupal) enabled? If yes try to disable it and clear cache.

gcybill’s picture

No cache, no optimize, just page compression enabled. Already clear cache

As Advanced profile, authenticated user using USER-1
Advance option > load method = ckeditor.js

still doesn't work.

dczepierga’s picture

But when u view source of the page, have u got line similar to this?

<script type="text/javascript" src="/drupal6/sites/all/modules/ckeditor/ckeditor/ckeditor.js?I"></script>

It should be in the top of page source.

gcybill’s picture

Ok i've found solution for my problem.

I change the load method (Advance option > load method) from ckeditor.js to ckeditor_basic.js and it works now. Maybe the ckeditor.js conflicted?

Works on for the content description, but the manual select UI color on admin CKEditor profile still doesn't work. But I don't mind.

Thanks for the support ;)

dczepierga’s picture

Could u write modules with version that u have enabled?

gcybill’s picture

module 6.x-1.2
version, i forgot whether it is 3.4.2, 3.4.3, or 3.4.5, I've tried them all today.

James Butler’s picture

I was having the same problem with CKEditor in an upgrade from 6.20 to 7.0. I went into advanced options and selected ckeditor_basic.js load method and it starting working. Then I went back into advanced options and switched the load method back to ckeditor.js and it continues to work. So switching between the two had some affect if you are having this problem still.

dczepierga’s picture

Ok really thx for solution. I will check that, and try to fix it.

Greetings

Pillhuhn’s picture

Another interesting observation: I was logged off of my site over the weekend, and Monday, after logging back in, the CKeditor worked once. However, in subsequent tries it did not load anymore.
Really weird.

dsklyar@anl.gov’s picture

In my case, the problem was caused by the ImageCache module - I disabled it and all is good.

wb2bwu’s picture

StatusFileSize
new162.95 KB

I am finding that ckeditor and other wysigwyg editors are not working in firefox, chrome but is working in IE. Not sure why but this issue is happening on multiple platforms including windows 7, vista and xp. I am running the latest version of IE on all machines. I attached a screen shot from a page creation window in IE to show how the editor buttons are shown. This isn't happening in Firefox or Google Chrome.

Pillhuhn’s picture

In response to wb2bwu: this doesn't seem to be true on a Mac. I tried to run the site in Safari and Camino and with both browsers, the CKeditor will show up the first time but not anymore on subsequent edits...

tc43’s picture

I'd like to second Pillhuhn's problem. Exactly the same issue. Initial page load is fine, any subsequent pages I try and edit the editor is missing.

tc43’s picture

It seems it may be a server issue??? as a local environment works fine. For a work around I've used wysiwyg with the yui editor and it works without a hitch, loads on all pages. Would idealy like to use CKeditor but for now....

physiotek’s picture

same here.
just noticed it yesterday.
i dont have any idea when it stopped working.
my last update (my last ckeditor use) on my website is around one month old and everything was ok at that time.

Pillhuhn’s picture

Version: 6.x-1.2 » 6.x-1.x-dev

I tried downloading the newest development release including the newest CKeditor, but still the same. However, this time I can provide the error messages Firefox is giving me. Maybe/hopefully this will help someone to fix it:

There are three errors (I replaced my domain name with '...'):

Error: The stylesheet http://.../node/1/skins/kama/editor.css?t=B1GG4Z6 was not loaded because its MIME type, "text/html", is not "text/css".
Source File: http://.../node/1/edit
Line: 0

Error: syntax error
Source File: http://.../node/1/lang/en.js?t=B1GG4Z6
Line: 1
Source Code:

Error: m.lang.contextmenu is undefined
Source File: http://.../sites/all/modules/ckeditor/ckeditor/ckeditor.js,qI.pagespeed.ce.JrWpU7pNrb.js
Line: 47

taffylass’s picture

Version: 6.x-1.x-dev » 7.x-1.0

Hi there, I am a newbie and complete beginner. Glad I found this

Have recently installed CKeditor. Was adding products to my drupal site, everything going well then suddenly the description box was gone, just a blank space where it should be. Have checked the ones that were there and they have gone to. Now also unable to add Basic Page/Blog etc also.

Have recently had to reinstall everything (including drupal via Softaculous) and am loathe to do it again. Have checked status report and nothing seems untoward.

Any ideas, have already gone through previous posts to see if this helps but am still none the wiser, please give me idiots guide in your response!

Thanks in advance, Tracy :)

anandharaj’s picture

Hi,

I also experiencing the same problem. The CKEditor is not load at all in the text area. I also tried change it to "ckeditor_basic.js", but still same.

Furthermore, i change my site to default Drupal theme - still same.

The log shows the following Notice:
Notice: Undefined index: 4 in ckeditor_profiles_compile() (line 424 of /modules/ckeditor/includes/ckeditor.lib.inc).

schnecksche’s picture

Version: 7.x-1.0 » 6.x-1.2

Hi there,

I'm experiencing this problem as well. The CKEditor doesn't seem to load and the text area stays blank.
I've already tried the suggestions from the included TROUBLESHOOTING.txt:
- checking the source for "ckeditor" : { "module_path" :,
- switching to Garland theme,
- disabling any modules and switching to Garland theme (as well as clearing my browser's cache), but nothing worked. (I also tried 3 different browsers, Firefox, Chrome and Opera.)

After stumbling upon this post, I also tried changing the load method to ckeditor_base.js, but that didn't work for me either.
However, upon loading I get an error in Firebug that says "m.lang.contextmenu is undefined" at line 47 in ckeditor.js. Could this be the problem? And what could be the reasons? Or: What have I done wrong during the installation and configuration process?

Any help would be greatly appreciated!

zamek’s picture

Greetings,

I had the same problem. I tried all of the suggestions mentioned above with no success. For me the problem was corrected by enabling "Optimize JavaScript files" in admin/settings/performance - very odd.

Hopes this helps someone else.

Pillhuhn’s picture

Thanks zamek for contributing. I am glad that this worked for you. Unfortunately, enabling "Optimize JavaScript Files" did not work for me... still the same issue...

Back to FCKeditor again...

taffylass’s picture

Version: 6.x-1.2 » 7.x-1.0
StatusFileSize
new111.66 KB

Added in screenshot for info.

T.

dczepierga’s picture

Pls use the DEV version of CKEditor module, there everything seems to work good.

Greetings

Pillhuhn’s picture

Nope, I installed the latest dev version (11-02-28) and the latest CKeditor (3.5.2), but still the same: the editor loads on the very first edit page I go to but the entire edit field stays empty on every subsequent try.

Here again are the error messages Firefox is giving me in the error console:

Error: syntax error
Source file: http://my-domain.com/node/2/lang/en.js?t=B1GG4Z6
Line: 1
Source code:

----------
Error: The stylesheet http://my-domain.com/node/2/skins/kama/editor.css?t=B1GG4Z6 was not loaded because its MIME type, "text/html", is not "text/css".
Source file: http://my-domain.com/node/2/edit
----------
Error: m.lang.contextmenu is undefined
Source file: http://my-domain.com/sites/all/modules/ckeditor/ckeditor/ckeditor.js,qI....
Line: 47

braun1700’s picture

So, I was having a similar problem but managed to fix it. When I would try to add new content, the body and summary form would essentially disappear like the screenshot in the original post. Firefox worked fine, but Chrome was basically giving me the finger. The problem for my particular (local) site was merely conflicting modules. I looked at the source code and couldn't find the JavaScript for CKEditor, and that's when I noticed something else that kept popping up every few lines. I had the LABjs module installed (http://drupal.org/project/labjs) and I wasn't using it so I disabled it... CKEditor miraculously works again.

I'm extremely new to all aspects of web design, so I won't be of much use as to explaining how LABjs was affecting CKEditor. I have just started learning about HTML, CSS, etc., so I don't even know how that module works exactly (I had installed it to play with it but forgot to get rid of it once I realized I didn't know what I was doing with it). But... my guess would be that since it changes the way JavaScript is loaded it was screwing up how Chrome was processing how CKEditor wants to function on the page. Even though you're probably not using LABjs (being that the project page says only 53 sites are using it), instead of disabling the millions of modules you have enabled to look for the problem, I would create a new test site on a local server and enable CKEditor and see if it works. If it does, then it's likely that another module is causing the problem, as was for my case. If it does work, then just add any modules you're suspicious of and test them one by one or by combinations and see if any of that causes CKEditor to start acting up again.

Hope this helps. I'm virtually worthless right now in most cases, but I figured I'd practice the good karma card and throw out another potential solution. Attached are some screenshots of before I disabled LABjs and after I dumped it.

taffylass’s picture

Ignore this comment, posted in error.

jaymallison’s picture

I had this problem with the normal 1.0 and the 1.x dev on a site I'd upgraded from Drupal 6 to Drupal 7. In the end it was a stupid problem. I just cleared my browser's cache and did a ctrl+r in FF to reload everything and now it works fine.

Browsers have a bad habit of stubbornly caching AJAX related JS / CSS files, and it's highly likely that the JS file from a previous version of CKEditor could be staying in the cache and breaking things.

physiotek’s picture

everything is back to normal for me. i really dont know what i did to correct this bug. maybe cache related? would like to be more helpfull but i tried so many things i dont have a clue what did the job. there's something else i noticed tho. after ckeditor was back to normal, the image browser wasn't properly working. i had an issue with image cache so the first thing i was trying to do with ckeditor was to add an image to work out the issue. but when i was clicking insert nothing happened. i havnt found this bug listed. i finally found out that all i needed to do is click on the body text box before trying to add an image. when someone add some text before trying to add an image there is no problem. the problem happens only when the first thing you try to do is add an image. it's like if ckeditor is not activated before you click into the box. hope it might help someone. cya. pht3k

tc43’s picture

Issue solved for me by below post on pagespeed. Looks like it may solve others like Pillhuhn
Hope it helps

http://drupal.org/node/1024316

Pillhuhn’s picture

Version: 7.x-1.0 » 6.x-1.x-dev

Wow, thanks tc43, that is it!

I disabled mod_pagespeed for my domain on Dreamhost (called 'Page Speed Optimization') and now, the CKeditor loads flawlessly on every page.

I hope the developers have an idea what the reason is and that they fix it soon.

dczepierga’s picture

Status: Active » Closed (fixed)

I closed this issue, because we start talk about another bug which is only related with bug fixed in this issue.
For mod_pagespeed bug i create new issue here: #1095908: CKEditor not load when Apache mod_pagespeed is enabled.

Greetings

lyosef’s picture

I've been struggling with the problem of an empty text box and Ckeditor for several months now. During this period I have found several solutions which failed later when more modules and content was added to my site. I have built and rebuilt my site several times over due to the failure of the Ckeditor. I have searched, trouble-shot, tore-down and re-built and yet the problem persist. I have invested 60-70 hours a week of study and application of Drupal during the last year and now I think I may have to start all over with another CMS. (IF I CAN KEEP MY JOB after wasting so much of my (and my employer's time).) Would someone please recommend another method for users to submit content and upload images? I'm really desperate and the job market is not looking so good!

lyosef’s picture

thebeacon’s picture

Version: 6.x-1.x-dev » 7.x-1.2

For me what fixed it is disabling "Aggregate JavaScript files." in Drupal 7 on Performance page

slickk’s picture

I tried the solution on http://www.neebar.com/2011/11/drupal-ck-editor-module-not-loading/ and it worked for me.

misscosmic’s picture

My problem seems very clear. There is no ckeditor.js in the ckeditor folder I downloaded. Drupal warns to have this ckeditor.js. Where can I download this missing file! Then my problem will be solved (wish wish).

mkesicki’s picture

@misscosmic please open new ticket with your issue.

gaxze’s picture

Going to throw my solution in - havent read all comments but as i had the same thing...

i previously enabled the php filter, this is the reason the filter is not showing for me.

solution for me:

goto: admin/config/content/ckeditor/edit/Full

ensure that which ever profile u use has php filter ticked in basic settings>import formats.

gusantor’s picture

Issue summary: View changes

Even when I can see the file, with 644 permission to it and ckeditor parent folder

sites/all/modules/ckeditor/ckeditor/ckeditor.js

I'm receiving a 404 error trying to get it

For me, the only way to get CKEditor working was to edit the global options at /admin/config/content/ckeditor/editg

there use the CDN option for CKEditor path field

cheers