Home Search Member List Faq Register Login  
UltimateEditor
Editor -- how to get cursor postion in editor

Thread Starter: krishnabiyyam   Started: 03-02-2010 4:53 AM   Replies: 3
 Karamasoft Support Forums » General Discussions » UltimateEditor » Editor -- how to get cursor postion in editor
 Printable Version    « Previous Thread   Next Thread »
  02 Mar 2010, 4:53 AM
krishnabiyyam is not online. Last active: 3/4/2010 1:00:38 AM krishnabiyyam

Not Ranked
Joined on 03-02-2010
Posts 2
Editor -- how to get cursor postion in editor

Hi friends,

I have just started using ultimate Editor. My questions are 

1. how to know the cursor postion in the editor. can we store the values.
2. how to get the properties of a word in a seperate properties window, like font size, font color, back color, selected word etc.

Thanks in advance.


  
  02 Mar 2010, 12:32 PM
Karamasoft is not online. Last active: 9/8/2010 11:48:21 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,334
Re: Editor -- how to get cursor postion in editor
1) You can use the GetCurrentRange client-side API method. Please refer to our CSSDropDown sample at http://www.karamasoft.com/Samples.aspx?component=UltimateEditor&sample=CSSDropDown and click on Show Code link at the bottom of the page to see how it can be used. Please also refer to the client-side API documentation at http://www.karamasoft.com/UltimateEditor/ClientAPI.htm.

2) You will need to create your own toolbar buttons to get the properties of a word in a separate window. Please refer to our Custom Toolbar Items sample at http://www.karamasoft.com/Samples.aspx?component=UltimateEditor&sample=CustomToolbarItems to see how you can achieve it.

  
  03 Mar 2010, 12:04 AM
krishnabiyyam is not online. Last active: 3/4/2010 1:00:38 AM krishnabiyyam

Not Ranked
Joined on 03-02-2010
Posts 2
Re: Editor -- how to get cursor postion in editor


1. one more problem i am facing. i have selected some text in the editor and if i click outside the editor, i am not able to get the GetCurrentRange. is there any way to persist the GetCurrentRange and last selected word row?

2. Can i get a sample example of custom tool bar other than in the site.

Thanks.


  
  03 Mar 2010, 1:03 AM
Karamasoft is not online. Last active: 9/8/2010 11:48:21 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,334
Re: Editor -- how to get cursor postion in editor
1) You can use StoreCurrentRange as explained in client-side API documentation.

2) If you download the free trial version from our website, you can see all the source code of the sample files.

  
 Page 1 of 1 (4 items)
Karamasoft Support Forums » General Discussions » UltimateEditor » Editor -- how to get cursor postion in editor

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2010 Karamasoft LLC. All rights reserved.