|
|
|
|
![]() ![]() |
Apr 10 2006, 06:40 PM
Post
#1
|
|
|
Member [ Level 2 ] Group: Members Posts: 72 Joined: 3-February 06 From: UK Member No.: 11,052 |
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. |
|
|
|
Apr 11 2006, 08:28 PM
Post
#2
|
|
|
Super Member Group: Members Posts: 595 Joined: 4-September 04 Member No.: 228 |
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. |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 8th October 2008 - 06:11 AM |