This may be the solution, I had the same issue of the editor not working and the 'object expected' error. 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
I'm also assuming you're using the javascript generated fckeditor like I am, if not then some of the server side generators may also use the ...ie.js and ...gecko.js and it may still fix your problem. Good Luck
It won't let me attach the file, I think it's just too big. Just try different variants of what I told him to search for, i.e. remove or add different spaces where they're not needed. good luck.
ProtectTags:function(A){
var B=FCKConfig.ProtectedTags;
if (FCKBrowserInfo.IsIE)
B+=B.length>0?'|ABBR|XML':'ABBR|XML';
ProtectTags:function(A){
if (!FCKConfig.ProtectedTags) FCKConfig.ProtectedTags="";
var B=FCKConfig.ProtectedTags;
if (FCKBrowserInfo.IsIE)
B+=B.length>0?'|ABBR|XML':'ABBR|XML';
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
ProtectTags:function(A){ var B=FCKConfig.ProtectedTags; if (FCKBrowserInfo.IsIE) B+=B.length>0?'|ABBR|XML':'ABBR|XML';ProtectTags:function(A){ if (!FCKConfig.ProtectedTags) FCKConfig.ProtectedTags=""; var B=FCKConfig.ProtectedTags; if (FCKBrowserInfo.IsIE) B+=B.length>0?'|ABBR|XML':'ABBR|XML';Re: 2 editor problems
Re: 2 editor problems