Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set the Focus on WYSIWYG Editor

Status
Not open for further replies.

gorgered

Programmer
Dec 13, 2005
24
0
0
US
Hi,

We are currenlty using jspell Iframe WYSIWYG Editor in our applicaiton. I am trying to set the foucs inside the editor after the page loaded.

onLoad of the body I am setting the foucs on to the textarea. It is seting the foucs but the WYSIWYG Editor loads after that the focus is getting lost. I tried to place the scrip after the WYSIWYG Editor scrpit but no luck.

Is there any why that I could check if the WYSIWYG Editor script is executed and then set the focus or call other script?

I am using Prototype js lib and I use "Form.focusFirstElement(form)" which works fine.
Thanks
 
Is there any why that I could check if the WYSIWYG Editor script is executed and then set the focus or call other script?

Yes - look at their code and see if you can spot it in there.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Hi,

Thanks for the response, I have to change there code which I dont like but works for now :)

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top