Re: Controlling the position of insert point (caret)

Daniel Glazman <[email protected]>
Newsgroups gmane.comp.mozilla.devel.editor
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
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



</Daniel>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.