Page 1 of 1

JavaScript: add text to pointer location

Posted: Wed Aug 23, 2006 10:07 am
by antubis
Hello,

I want to add some text where the mouse pointer is in a textarea.

Example:

Code: Select all

Some text, some text, some text [i][ user clicked here and some text is added ][/i], some text, some text ....
Thanks to all!

Posted: Wed Aug 23, 2006 10:15 am
by shiznatix
try searching our dear friend google

http://www.google.com/search?hl=en&q=ja ... gle+Search

Posted: Wed Aug 23, 2006 4:00 pm
by Weirdan
or see how it's done in our post form (wrapping selection with bbtags)