Re: set cursor in editor

pinEdit

set cursor in editor


galastur 07-12-2010, 12:57

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

Re: set cursor in editor


Pintexx Support 07-14-2010, 11:27
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