This project has moved. For the latest updates, please go here.

How to focus a editor textarea

Jul 20, 2010 at 11:26 PM
I would like to have a focus (text cursor is blinking in editor) on my wysiwyg-editor. What I do is: $("textarea").htmlarea(); $("textarea").focus(); However, no focus there. for a regular input, that works perfectly fine. How do I get the text editor text area to receive the focus?
Jul 20, 2010 at 11:52 PM
Found a solution to my problem. However, mybe there is a nicer solution to it. Some native function provided would be very nice. If you have no iframes and one textarea on your page: $("textarea").htmlarea({loaded: fucntion(){$("iframe").focus();}})
Feb 21, 2013 at 2:43 AM
I don't want to start a new thread since my question is similar but I'm wondering if the jHtmlArea plugin natively detects if a TEXTAREA it is being applied to has focus and then gives that focus to the associated IFRAME that it creates for that TEXTAREA.