In HTML Editor how can we find cursor position or selected text ?
-
Hi All, can you tell me that how can we find cursor position or selected text in HTML editor? There can be 3 possibilities: 1. We can find the position of cursor. 2. We can find the starting and Ending position of selected text. 3. We can find the complete selected text. I have done 2nd and 3rd task for IE but could not succeeded for Firefox. Plz help me to find out the solution that can work in both IE and Firefox. Further, I will explain that I am creating rich text box editor in asp.net. So I am trying to find the cursor position in content window(html page) of iframe. Thanx for any kind of help...
Regards... Vijay Jain :)
"One thing you can't recycle is wasted time."
-
Hi All, can you tell me that how can we find cursor position or selected text in HTML editor? There can be 3 possibilities: 1. We can find the position of cursor. 2. We can find the starting and Ending position of selected text. 3. We can find the complete selected text. I have done 2nd and 3rd task for IE but could not succeeded for Firefox. Plz help me to find out the solution that can work in both IE and Firefox. Further, I will explain that I am creating rich text box editor in asp.net. So I am trying to find the cursor position in content window(html page) of iframe. Thanx for any kind of help...
Regards... Vijay Jain :)
"One thing you can't recycle is wasted time."
Jain Vijay wrote:
I am creating rich text box editor in asp.net
Why recreate something which already exists in abundance. Try this one as a start http://www.asp.net/AJAX/AjaxControlToolkit/Samples/HTMLEditor/HTMLEditor.aspx[^]
only two letters away from being an asset