[XHTML/JS] Simple BBCode editor

Looks pretty good! Might be using it in future :)
 
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...
 
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.
 
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