inserting <font size> tags with selection
I have a selection and textArea like the above.
<textArea name='textArea' style='width:500;height:150'>
I like to make it like the following.
(1) A user puts the cursur in fron of target text with his or her mouse.
(2) He or she drags the cursur to the end of target text.
(3) He or she selects size3 using the selection box.
"target text" becomes "<font size='3'>target text</font3>."
I hope I make it with your help.