Welcome Guest Search | Active Topics | Sign In | Register

How to move the cursor at the end of the text in HTML Editor Options
Jan Rygh
Posted: Wednesday, September 16, 2009 10:26:08 AM
Rank: Member
Groups: Member

Joined: 2/9/2009
Posts: 23
Hi, I have an HTML editor that I control from javascripts. What I want to do is to set focus on the editor and place the cursor at the end of current content in the editor.

Code: JavaScript
var ed = eo_GetObject("Editor1");
    if(ed != null)
    {
        ed.focus();
        ed.setCursorToTheEndOfContent();
    }
eo_support
Posted: Wednesday, September 16, 2009 11:03:40 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Unfortunately I do not think there is a reliable way to move the cursor programmatically inside the editor. Sorry about that!

Thanks!


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.