WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Pasting text at selection in Textarea, Idris, July 3, 2004
     Re:Pasting text at selection in Textarea, Erik Arvidsson, July 19, 2004

Subject: Pasting text at selection in Textarea From: Idris Date: July 3, 2004

I am trying to make buttons for a textarea so that, for example, you can click "Bold" and it will put [B] and [/B] tags around what you are selected on. In Mozilla, selectionStart and selectionEnd works very well, but in IE, I can't find a clean way to do it. I looked at some of the bulletin boards like phpBB and they seem to have strange workarounds. Here is a page that has that kind of workaround: http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130

Is there a simpler way?

Thanks in advance,
  Idris




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX