Hi!
I have a little, but frustrating problem under IE. When I load the page, fckeditor gets focus and the page scroll down...
I search the forum, but can't get the perfect solution for this error.
In the config file I made this change:
FCKConfig.StartupFocus = false;
Can anybody help me?
I have a little, but frustrating problem under IE. When I load the page, fckeditor gets focus and the page scroll down...
I search the forum, but can't get the perfect solution for this error.
In the config file I made this change:
FCKConfig.StartupFocus = false;
Can anybody help me?

Re: IE startup focus problem
Re: IE startup focus problem
Re: IE startup focus problem
Not really a good solution but IF oldnotes = "" THEN fckEditor.value = " " ELSE fckEditor.value = oldnotes. It will put "<p> </p>" which is displayed as a space in then editor. It doesn't automatically steal focus at this point. Also, I have a seperate html cleaner that will get rid of the blank paragraphs upon submission.
Re: IE startup focus problem
http://www.fckeditor.net/forums/viewtopic.php?f=6&t=850&p=10725&hilit=+focus#p10725
http://www.fckeditor.net/forums/viewtopic.php?f=6&t=6701&p=18003&hilit=+focus#p18003
http://www.fckeditor.net/forums/viewtopic.php?f=6&t=6532&p=17542&hilit=+focus#p17542
Re: IE startup focus problem
I did figure out what my problem was with one of the workarounds. Since I'm using ReplaceTextArea() instead of Create() I had to put the default value in the actual textarea and not use editor.Value = " " which is what I was trying to do. Now the problem is of course a leading space in the editor. I suppose I can delete it when the user clicks in the editor containing only that space. I hope one of the devs can respond to this thread and shed some light on when this might be fixed.
Re: IE startup focus problem
thanks,
Josh
Re: IE startup focus problem
This has been fixed in FCKeditor 2.5 upwards, so the issue is already solved. The problem comes from the fact that IE allows only one selection in a browser window, despite the fact that the browser window might contain multiple iframes. Even worse, querying for the selection object by document.selection can get you a selection object that does not belong to the document in question, but in the same window. Therefore you'll find FCKeditor 2.4 modifying selections outside of the editing iframe since we didn't check for the selection's document back then.
There should be no easy workaround for 2.4 on this issue AFAIK, but then someone might have come up with a really smart idea to work around that.
Re: IE startup focus problem
Thanks.
Re: IE startup focus problem
http://www.ilovemyjournal.com/?action=v ... y&eid=3254