Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[XHTML/JS] Simple BBCode editor

duck you, I'm a dragon
Loyal Member
Joined
Apr 29, 2005
Messages
6,407
Reaction score
130
I made this for my blog and I thought it was pretty decent so I decided to share it.

Example:


Download:
 
Custom Title Activated
Loyal Member
Joined
Jun 28, 2007
Messages
2,986
Reaction score
3
Looks pretty good! Might be using it in future :)
 
duck you, I'm a dragon
Loyal Member
Joined
Apr 29, 2005
Messages
6,407
Reaction score
130
Thanks, I might make a v2 because now it only puts the tags in the text area, it'd be easier if it would wrap the tags around the selected text, like the VB text-editor does. But then again, the VB text-editor has like 2342034602364 lines of code so I'm not too sure if that's gonna work...
 
Custom Title Activated
Loyal Member
Joined
May 25, 2007
Messages
1,025
Reaction score
31
Thanks, I might make a v2 because now it only puts the tags in the text area, it'd be easier if it would wrap the tags around the selected text, like the VB text-editor does. But then again, the VB text-editor has like 2342034602364 lines of code so I'm not too sure if that's gonna work...
It's not hard you know... looks relatively easy...
Nice job on this, but a few things like the font formatting could be improved.
 
Joined
Jun 8, 2007
Messages
1,985
Reaction score
490
I like it!

Did you set-up the display methods yet?

Like:
PHP:
<?php
//Get rid of BB Code and replace with HTML:
$textDisplay=htmlentities($_POST['editor_textarea']);
$textDisplay=str_replace("[b]", "<b>",$textDisplay); 
$textDisplay=str_replace("[/b]", "</b>",$textDisplay);
$textDisplay=html_decode_entity($textDisplay);
print "$textDisplay";
?>

Something like that might work

I downloaded it, do you mind if I use it?
 
Back
Top