PDA

View Full Version : How to get cursor's position in textarea



costas
02-02-2007, 11:29 AM
Hi guys,
I'm making a forum and I want to add quick text formatting(you know making bold, italic e.t.c.)! I want to have some buttons that each one does something else! Now, I want when a button is pressed to get the cursor's position in the textarea, so I can add whatever I want! How can I do that?

Thanks!

shachi
02-02-2007, 04:01 PM
http://www.gimptalk.com/forum/topic.php?t=5462

costas
02-03-2007, 07:57 AM
Thanks shachi!

shachi
02-03-2007, 08:32 AM
You are welcome.