Jump to content
xisto Community
Sign in to follow this  
Kushika

Any BBCode Editor Around?

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.