Welcome Guest Search | Active Topics | Sign In | Register

Auto focus the Editor on page load Options
eo_support
Posted: Monday, July 19, 2010 1:07:41 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Use the following code to automatically focus the Editor control when the page loads:

Code: JavaScript
//This function is called when the Editor finishes loading
//because the Editor's ClientSideOnLoad is set to the name
//of this function
function editor_loaded(editor)
{
    //Call the Editor's client side API to focus the editor
    editor.focus();
}


Code: HTML/ASPX
<eo:Editor ClientSideOnLoad="editor_loaded" .....>
......
</eo:Editor>


Hope this helps.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.