I have 2 problems.
The first one is that one of my users how work with IE 6 can’t see the editor.
I sent him to the demo site and he send me a screenshot of the page… he can’t see any buttons only the “submit”. I use IE 6 and all work fines to me.
I got an error code from the client:
Line: 123
Char: 2
Error: Object expected
Code:0
URL: http://www.fckeditor.net/fckeditor/fckeditor.html?InstanceName=FCKeditor1&Toolbar=Default
The second problem is harder. I have some clients that can see the buttons but same times they get blank boxes instead of buttons and can't use the editor.
If I try at the same time to use different computer in the same network all work fine.
The only way to make the editor work is to delete the browser history file and to restart the computer.
Can anyone help me?
Sun, 08/26/2007 - 09:48
#1
Re: 2 editor problems
In a couple of places the editor tries to access variables that don't exists. I unfortunately had to decompress the fckeditorcode_ie.js and the fckeditorcode_gecko.js to find the problem. There are two places where I had to check to make sure the variables existed:
It checks "if (FCKConfig.ProtectedTags.length>0) do this..." Probably would be best to do a ctrl+f for FCKConfig.ProtectedTags.length.
I added "if (FCKConfig.ProtectedTags && FCKConfig.ProtectedTags.length>0)if (FCKConfig.ProtectedTags && FCKConfig.ProtectedTags.length>0)"
Another place of confusion:
In the function "FCKKeystrokeHandler.prototype.SetKeystrokes=function(){" ctrl+f that...
You will see this...(probably on one line)
if (typeof(A[0])=='object') this.SetKeystrokes.apply(this,A);
else{
if (A.length==1) delete this.Keystrokes[A[0]];
else this.Keystrokes[A[0]]=A[1]===true?true:A;
}
I just wrapped this if...else statement with an if(A) {...} and these things fixed the problem.
Hope this helps and good luck.
Also, if you happen to find the uncompressed files that these two things are in please tell me. I'd like to update them to keep them consistent just in case I purchase fck's compressor.
Thanks
Re: 2 editor problems
Good Luck
Re: 2 editor problems
i have the same problem with IE6 Version 6.00.2900.2168.....
do you have correct the ....ie.js file ???
it's possible to give me a tip to decompress the or give me the correct ...ie.js file, where can resolve this problem ?
thanks
david
Re: 2 editor problems
Re: 2 editor problems
Ok, did a grep and found the original source file that FCKConfig.ProtectedTags.length was in and found that it's in "editor/_source/internals/fck.js". But if you've just downloaded the editor off of the site just search for "FCKConfig.ProtectedTags". They set that to another variable and then try to get its length:
You might want to change it to this to get it to work:
And that should fix it, haven't tested it but it should for at least that part.
Good luck
Re: 2 editor problems
Re: 2 editor problems