Hi
I don't know if this is the right place to present my problem but I figure it's worth a shot anyway.
I'm currently making an rich text email client in Adobe Flex which compiles to flash. As for the message part of an email i want to support displaying html. Since the components provided by Flex have very limited html support i went looking for something with better support. I found this great Flex component called HTMLComponent made by a guy called Judah.
With this component you can put html inside your Flex page, either an external page, local page, or just manually put in a html string.
Now this component has an editor mode which uses the FCKEditor. This was perfect for using as the message field for an email client. So all was sweet like sugar for a while, until i opened up my application in Internet Explorer. There is no problem in Firefox.
The problem is that when the HTMLComponent get focus it wont let go if you press the mouse outside or try to tab out. You can observe this here.
If you start to type in the text field of the FCKEditor and then try to click in the Flex text field above, this will not get focus and any keyboard input will still go to the FCKEditor. You can observe the right behavior using Firefox. I found some posts in Judahs blog talking about this problem and they blamed the flash plugin and Internet Explorer, and i don't want to disagree. There is probably a bug in one or both.
But now to the interesting part.
If you first collapse the toolbar and then expand it again the FCKEditor looses the focus. So i figured that if I used the Javascript API to collapse and expand the toolbar every time i needed to loose the focus everything would be ok, but I was wrong.
There must be some magic involved with the mouse click to do the expanding or something like that.
I don't have so much experience with Javascript and I'm hoping someone here have an idea to what is happening here or how i can trigger this "magic" collapse and expand behavior in javascript.
Thanks
Wed, 08/08/2007 - 11:21
#1