JavaScript: add text to pointer location

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
antubis
Forum Newbie
Posts: 16
Joined: Sun Apr 30, 2006 1:48 pm
Location: Pavlikeni, Bulgaria
Contact:

JavaScript: add text to pointer location

Post 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!
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

try searching our dear friend google

http://www.google.com/search?hl=en&q=ja ... gle+Search
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

or see how it's done in our post form (wrapping selection with bbtags)
Post Reply