I'm having an intermittent problem with FCK editor on my hosted site, running Drupal 5.5 and the latest version of the FCK editor (2.5.1) with FCK editor module 5.x-2.0-beta. It's very puzzling, and I cannot figure out the cause or the resolve (as the problem comes and goes). Perhaps someone has had the same issue.
The fields (most larger text areas on my site) enabled for FCK editor disappear - in that - the title of the field appears, e.g. "body" but no entry block appears below. I keep having to disable the editor module in order to enter information in any of those fields. When it occurs, it occurs for both roles (Default running DrupalBasic and Administrator running DrupalFull)
The include fields / and force simplified toolbar options are both set to the default values - so that isn't the problem. I notice this problem not while in the middle of making updates and changes, but upon logging in as site admin after a period of time where it appears to be working fine. Some activity on the site seems to trigger it.
My local dev site running the same configuration works fine...
Any insight? I cannot duplicate the problem and it occasionally resolves on it's own for a period of time, only to fritz out again when I least expect it.
Comments
Comment #1
Petuschki commenteddid you test with different browsers?
It could be a memory problem of the browser...
Comment #2
mcri commentedI checked the site with Safari and it does appear to be working in that browser - I'm also having problems with Firefox dropping input format and other post settings since the upgrade to 5.6 (yesterday). So..there may be something to this. I'll keep checking the forums to see what is happening w/Firefox. I do have the latest version.
Thanks for the tip.
mcri
Comment #3
wwalc commentedDoes the problem described here happen in Firefox or Mozilla?
Firefox has a very nice Firebug extension, Opera has Error Console, did any errors show up there?
Comment #4
nishitdas commentedI am facing the same problem for the 5.x-2.1-beta release.
The problem is appears only in FireFox . it works perfectly in IE
Comment #5
wwalc commentednishit: could you open Firebug and paste here any errors that you have found there?
Comment #6
nishitdas commentedThe error messages found in "Firefox Error Console" are
Error: uncaught exception: Permission denied to call method Location.toString
Error: illegal character
Source File: http://www.site.com/modules/fckeditor/fckeditor/fckconfig.js
Line: 201, Column: 5
Source Code:
FCKCo
Error: FCKConfig.ContextMenu has no properties
Source File: http://www.site.com/modules/fckeditor/fckeditor/editor/js/fckeditorcode_...
Line: 96
Error: C has no properties
Source File: http://www.site.com/modules/fckeditor/fckeditor/editor/js/fckeditorcode_...
Line: 89
Error: uncaught exception: Permission denied to call method Location.toString
=====================================
I have not done any changes in any of the file 5.x-2.0-beta
Though its working in IE, I m also getting a JS error : FCKconfig is undefined.
Comment #7
wwalc commentedDo any other errors appear in Firebug?
This doesn't look to me like a bug in a FCKeditor module.
It may be some other module that causes FCKeditor to fail to load.
Did you try to re-upload the FCKeditor to the modules/fckeditor/fckeditor directory?
Perhaps some files are broken?
Comment #8
Deviation commentedIt appears to be related to the fckeditor\editor\js\fckeditorcode_gecko.js file. I was able to get the editor to display by changing the layout of line 86.
Changed From:
var FCKIcon=function(A){var B=A?typeof(A):'undefined';switch (B){case 'number':this.Path=FCKConfig.SkinPath+'fck_strip.gif';this.Size=16;this.Position=A;break;case 'undefined':this.Path=FCK_SPACER_PATH;break;case 'string':this.Path=A;break;default:this.Path=A[0];this.Size=A[1];this.Position=A[2];}};FCKIcon.prototype.CreateIconElement=function(A){var B,eIconImage;if (this.Position){var C='-'+((this.Position-1)*this.Size)+'px';if (FCKBrowserInfo.IsIE){B=A.createElement('DIV');eIconImage=B.appendChild(A.createElement('IMG'));eIconImage.src=this.Path;eIconImage.style.top=C;}else{B=A.createElement('IMG');B.src=FCK_SPACER_PATH;B.style.backgroundPosition='0px '+C;B.style.backgroundImage='url("'+this.Path+'")';}}else{if (FCKBrowserInfo.IsIE){B=A.createElement('DIV');eIconImage=B.appendChild(A.createElement('IMG'));eIconImage.src=this.Path?this.Path:FCK_SPACER_PATH;}else{B=A.createElement('IMG');B.src=this.Path?this.Path:FCK_SPACER_PATH;}};B.className='TB_Button_Image';return B;}To This:
I still have an error in /fckeditor/fckeditor.utils.js though.
document.getElementById("switch_" + editorInstance.Name) has no propertiesI'm not a javascript guru so I'll leave that up to someone else....
Comment #9
Jorrit commentedDoes the problem still exist for current versions of the module and FCKeditor?
Comment #10
Jorrit commentedComment #11
cloxzime commentedYeah, I am having this problem too.
Currently using Drupal 6.10 + Wysiwyg API 6.x-1.0 + FCKeditor 2.6.4 + IMCE 6.x-1.2
The editor is not show off as the text area blank.
Please, help me with this. Hopefully to hear from you. Thank you.
Comment #12
wwalc commented@cloxzime - you're using the WYSIWYG API module, not the FCKeditor module (a dedicated module just for FCKEditor).
Please open an issue in the WYSIWYG issue tracker: http://drupal.org/project/wysiwyg and I'll take a look at it there, also make sure that you have followed the instructions.
Comment #13
pacome commentedHi all,
I'm having the same issue... No error message, but a blank field (covering the real area of the field + filed-title).
I'm working on drupal 5.10, with the official release of FCKeditor module 5x 2.2 and FCKeditor 2.6.4
I tried on Firefox3, Opera 9.62 and Safari 3.2.1 under Mac OS X environnement, with no success...
It doesn't work on my custom theme, and neither on basic Bluemarine Theme.
Any idea and/or news about that ?
Best
-P-
Comment #14
pacome commentedI forgot to change the version of the issue from 5.x-2.0 beta to 5.x-2.2
Now it's done ;)
-p-
Comment #15
pacome commentedOooops !!
it was just a stupid question of permissions on some files.... It's often like that !
I turn the issue back to it's previous status..
-p-
Comment #16
sgdev commentedThe text entry field is not disappearing for us, but we are seeing the error message "Permission denied to call method Location.toString" in Firebug (with Firefox 3.0.10) on every page where an FCKeditor text area is located. We are using Drupal 5.18, jQuery 1.2.6 (with the jQuery Update module), FCKeditor WYSIWYG 5.x-2.2, and FCKeditor 2.6.4.
The Firebug Console gives us the following information:
Line 13 of
jquery.jsis theeval(function(p,a,c,k,e,r)line. Also worth noting, we are using the JavaScript Aggregator module to combine jQuery with other JavaScript files, to create a single JS file loaded by Drupal.Line 67 of
fckeditorcode_gecko.jsis the following:Comment #17
Jorrit commentedPlease try to make a test account that has this problem and send me the details using the contact form.
Comment #18
Jorrit commentedClosed because of lack of response.