From:  "Deshbir" <deshbirdugal@gmail.com>
Date:  31 Aug 2005 20:34:03 Hong Kong Time
Newsgroup:  news.mozilla.org/netscape.public.mozilla.editor
Subject:  

Re: Controlling the position of insert point (caret)

NNTP-Posting-Host:  202-149-53-170.exatt.net

thanks!

"Daniel Glazman"  wrote in message
news:df3rrm$n1s1@ripley.aoltw.net...
> Deshbir wrote:
> > Hi,
> >
> > Is it possible to control/change the position of editor insertion point
> > (cursor/caret) ?
> >
> > For example I need to move the insertion point to end of the last
> > character/word ....
> >
> > Thanks in advance
> > Deshbir
>
> Yes. Use the selection.
>  From JS, it's editor.selection where editor is the current editor
instance
> (not the xul element). See
>
http://lxr.mozilla.org/seamonkey/source/content/base/public/nsISelection.idl
>
>
>
>