[SOLVED] Javscript: Selected Text

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

[SOLVED] Javscript: Selected Text

Post by iknownothing »

Hey guys,

I'm in the process of developing a CMS, and it will use BBCode in certain parts, I was wondering if anyone knew, or could at least give me something to search for (most likely some sort of Javascript function) on the following:

In here (being the post) you can select some text, and click on the PHP, Code, Bold tags etc. and the BB Tags surround the selected text. What function would I search for to do the same?

Thanks.
Last edited by iknownothing on Fri Aug 10, 2007 8:27 am, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Have you looked at the Javascript source for the posting pages?
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Post by iknownothing »

feyd wrote:Have you looked at the Javascript source for the posting pages?
Now I feel like an idiot, thanks for the wake up.
Post Reply