Topic: Wrap selected textarea text in tags (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=31833" title="Pages that link to Topic: Wrap selected textarea text in tags (Page 1 of 1)" rel="nofollow" >Topic: Wrap selected textarea text in tags <span class="small">(Page 1 of 1)</span>\

 
Hustluz
Bipolar (III) Inmate

From:
Insane since: Jun 2003

posted 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?

thank you for your time.

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

posted posted 05-26-2010 06:35

You could copy the code used here.

Here's some code a friend wrote:
http://www.webdevout.net/test?01t&raw

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted 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

Hustluz
Bipolar (III) Inmate

From:
Insane since: Jun 2003

posted posted 05-28-2010 20:40

Thanks guys i will look through that stuff.

coach
Nervous Wreck (II) Inmate

From:
Insane since: May 2011

posted posted 05-31-2011 11:03
Edit TP: spam removed


Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu