Topic: Wrap selected textarea text in tags (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: |
posted 05-25-2010 20:53
How would i go about writting javascript code that would wrap the selected text in a text area in a tag like a bold tag or whatever else i wanted to do. exactly like the UBB code to the left of the text areas for this forum? |
Paranoid (IV) Inmate From: Florida |
posted 05-26-2010 06:35
You could copy the code used here. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 05-26-2010 17:28
Yeah, the code here is open source, so go ahead, poke around in http://www.ozoneasylum.com/images/posting_input.js.php |
Bipolar (III) Inmate From: |
posted 05-28-2010 20:40
Thanks guys i will look through that stuff. |
Nervous Wreck (II) Inmate From: |
posted 05-31-2011 11:03
Edit TP: spam removed
|