Topic: Wrap selected textarea text in tags |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() You could copy the code used here. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() ![]() ![]() ![]() 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: |
![]() ![]() ![]() ![]() Thanks guys i will look through that stuff. |
Nervous Wreck (II) Inmate From: |
![]() ![]() ![]() ![]() Edit TP: spam removed
|