Kushika 0 Report post Posted April 10, 2006 I'm running an online drawing script, which utilzes BBCode like on forums. I'd like to implement a free BBCode editor on some of the commenting text boxes. I'm looking for somethign that is free, lightweight and cross-browser compatible. I've searched and serach all over the internet but I am unble to find anything. I have php, mySQL access and I don't mind if the script uses javascript. I want something that works similar to the bbCode editor on vBulletin, if not, something that works like the bbCode 'inserter' on these forums. Thanks in advanced. P.S. I'm not looking for a WYSIWIG html editor, but for somethign that outputs BB code tags instead. Share this post Link to post Share on other sites
Hercco 0 Report post Posted April 11, 2006 Easiest way to do this is by "stealing" the code from other software. Go to a website running a phpBB forums (it's open source) go to a posting page and click View|Page Source. For the "code inserter" you only need javascript and if you have at least some skills with it it should be no brainer to code it by your self. With javascript you can simply pull the contents of a textarea from a single variable (something like window.document.formname.textareaneme.value) and then do the what ever manipulations you need and again store the updated string to the same variable. Share this post Link to post Share on other sites