Hi!
I have just found this excellent editor but cannot get it to work with IE. Works fine with Firefox...
I copied it into a directory called "fckeditor" in my site's root dir. I edited the config js file to turn of language autodetection. I inserted the following code into my template HTML ( the neccessary file is included in the HEAD part of the page of course):
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.Config[ "AutoDetectLanguage" ] = false ;
oFCKeditor.Config[ "DefaultLanguage" ] = "en" ;
oFCKeditor.Value = 'Content' ;
oFCKeditor.Create() ;
In Firefox it works just fine, but in IE6 it gives me an error:
Line 18, char 614
Error: Object doesn't support this property or method
Code: 0
URL: http://localhost/fckeditor/editor/fcked ... ar=Default
Any ideas?
Mon, 11/01/2004 - 16:52
#1
RE: Error with IE6
RE: Error with IE6
I use a PHP version of the editor.
If I get the string back from the class and use it straight away through a "print", all is hunky-dory.
If, however, I string the returned HTML code together with other code, I get the forementioned error.
Similarly : if I print the returned code straight after getting it back and then later on use it again stringed together with other HTML, it all shows up fine (as long a the textarea names are the same).
Obviously doing it that way will be totally useless as the id of the formfield is not unique and therefore you won't actually get any results...
I'll keep testing.
RE: Error with IE6 on line 18
I find that the problem is that the js/fckeditorcode_ie_2.js file doesn't get loaded.
The following files have been loaded, so the problem seems to be somewhere in the code between where the language file is being loaded and where the ie_2.js is being loaded.
fckeditor/editor/skins/default/fck_editor.css
fckeditor/editor/skins/default/fck_contextmenu.css
js/fck_startup.js
../fckconfig.js
js/fckeditorcode_ie_1.js
lang/nl.js
Please, please, anyone who knows the solution....
RE: Error with IE6
I experimented and found out that if I use 2 fckeditors at one page the second one will show, but the first one not.
So a workaround is now to use 2 fckeditors at a page, but that's not a real solution in my opinion....
RE: Error with IE6
The first one will still generate the js error we mentioned before.
And strangely enough, the second one which does show the toolbar, still won't show the icons which are supposed to be in the toolbar...
I'm at the end of my wits trying to find a solution.
I don't think it is a config issue as FireFox returns everything fine, no matter whether it's one or two editors. So for now, my analysis stays that it is an error somewhere in the js/fckeditorcode_ie_1.js between where the calls go out to the language file and later to the ie_2.js file.
Frederico, any suggestions ?
RE: Error with IE6
try to use " instead of '
ykuendig
RE: Error with IE6
In my case, I'm sure the error occurs in one of the FCKeditor js files, not in the call to the file as I load the editor via php, so the hidden input tags + the iframe are written in via php.
RE: Error with IE6
YIPPIAYEAH !!!!!!!!
Found the problem !!!!!!!!! (or rather the solution)
Read through:
https://sourceforge.net/tracker/?group_ ... aid=983398
Basically the form submit button may not be called "submit" by name. To be quite fair, this is of course silly as that is the most logical name.
But never mind, as I really like FCKeditor, I'll just have to recode half the bloody CMS to change any and all references to the submit button as being called "submit"...
Darn.. there goes my weekend !
Could this note (submit button may not be named "submit") please be added to the documentation to save other people this frustration ?
RE: Error with IE6
Yes it solved it for me too. Damn that was a tricky bug. Thank you
RE: Error with IE6
3 hours for me and now it's ok
good works
Thx
RE: Error with IE6