My previous solution has created some problems.
I spent a lot of time understanding their script and I think I finally have the right answer:
In the WinIE.js file you will find a function called: FixActiveTabUI()
there is a switch case that goes over the editor Tabs (i.e. Edit, Html, Preview)
The first case check the Edit tab and fires a method: editor.FocusDocument()
this method is ignoring the "Focus" attribute of the Cute Editor Object.
I've found that in other places of their code, they are using the following check before calling this method:
if(Ox435[OxO69e3[0x209]]){ // checking the cute editor Focus attribute (true/false)
if(!Ox435[OxO69e3[0xa]].hasFocus()){ // checking if the object has focus already
editor.FocusDocument() ; // call the focus method
}
}
So I used the same checking before FocusDocument() in each case (I also found that they are using the FocusDocumnet only for the "Edit tab" and the "Html Tab")
Just to let you know:
1. I use version 5.3
2. The hex numbers are the position of their constant name in arrays. for instance:
The first array in my file is: var OxO69e3=["prototype","vars".....
That menas that
OxO69e3[0x1] = "vars"
I'm not sure if you understood everything but I hope others will and the time I've spent for fixing my trouble will be usefull for others.
Asaf.