Welcome to Pintexx Forum Sign in | Join | Faq

pinEdit

Started by galastur at 07-12-2010 12:57 . Topic has 1 replies.

Print Search
Sort Posts:    
   07-12-2010, 12:57
galastur is not online. Last active: 21.09.2011 16:29:11 galastur

Top 500 Posts
Joined on 06-01-2010
Posts 2
set cursor in editor
Reply Quote

Hi,

I am using external toolbars with pinEdit and I would like to know how to "re-display" (put it back to the same position it was) the cursor in the editor after clicking a button in the toolbar. Also, how do I put the cursor in the editor after loading the editor?

Thanks

   Report 
   07-14-2010, 11:27
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.910
Re: set cursor in editor
Reply Quote
Hello,

there is no native method for this.
You can try using the editor.document object to access DOM.
Save the current Range object and reselect this range after.

You can use AutoFocus property or use editor.focus.

Regards,
Hans-Peter
   Report 
Pintexx Forum » Developer Produ... » pinEdit » Re: set cursor in editor