Link to home
Start Free TrialLog in
Avatar of mary_M
mary_M

asked on

How to "get" text in text area?

Hello...

I'm developing a toolbar for Internet Explorer...
One of its functions, is to surround text in a text area with attributes....

In other words... if the user is typing something (like this question I'm typing),
then he/she selects a sentence like: Word Word Word Word
then click a button on toolbar that will "process" the selected word/sentence...

By process I mainly mean adding an attribute before/after the sentence...
so it becomes something like:
[b] Word Word Word Word [/b]
or <i > Word Word Word Word </i >
etc..

So my questions:
- how to get the selected text only (not the un-selected text in the same textbox)... ?
- Once the string is captured, how to return the selected/marked text to the textbox with the attributes??

I hope I was able to explain what I need :)
Thanks,
Mary
Avatar of mary_M
mary_M

ASKER

> Guru on this subject..

I thought the this should be the level of the person who is answering the question (not me) :-)
But after posting the question, I found that label:

Author:  mary_M, Limited Member
Guru on this subject.

Well... I am NOT Guru on this subject... it was a mistake, sorry :)
Mary
ASKER CERTIFIED SOLUTION
Avatar of kirankumar_goura
kirankumar_goura
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial