Page 1 of 1

[SOLVED] Javscript: Selected Text

Posted: Thu Aug 09, 2007 9:53 pm
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.

Posted: Fri Aug 10, 2007 1:19 am
by feyd
Have you looked at the Javascript source for the posting pages?

Posted: Fri Aug 10, 2007 8:26 am
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.