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.
[SOLVED] Javscript: Selected Text
Moderator: General Moderators
- iknownothing
- Forum Contributor
- Posts: 337
- Joined: Sun Dec 17, 2006 11:53 pm
- Location: Sunshine Coast, Australia
[SOLVED] Javscript: Selected Text
Last edited by iknownothing on Fri Aug 10, 2007 8:27 am, edited 1 time in total.
- iknownothing
- Forum Contributor
- Posts: 337
- Joined: Sun Dec 17, 2006 11:53 pm
- Location: Sunshine Coast, Australia