[SOLVED] Javscript: Selected Text
Posted: Thu Aug 09, 2007 9:53 pm
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.
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.