[XHTML/JS] Simple BBCode editor

Results 1 to 7 of 7
  1. #1
    Fuck you, I'm a dragon Pieman is offline
    MemberRank
    Apr 2005 Join Date
    The NetherlandsLocation
    7,414Posts

    [XHTML/JS] Simple BBCode editor

    I made this for my blog and I thought it was pretty decent so I decided to share it.

    Example:
    http://pie-designs.net/pielite/editor.php

    Download:
    http://pie-designs.net/editor.rar


  2. #2
    Gamma Daevius is offline
    MemberRank
    Jun 2007 Join Date
    NetherlandsLocation
    3,252Posts

    Re: [XHTML/JS] Simple BBCode editor

    Looks pretty good! Might be using it in future :)

  3. #3
    Fuck you, I'm a dragon Pieman is offline
    MemberRank
    Apr 2005 Join Date
    The NetherlandsLocation
    7,414Posts

    Re: [XHTML/JS] Simple BBCode editor

    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...

  4. #4
    Gold Jamie is offline
    MemberRank
    Apr 2007 Join Date
    ScotlandLocation
    1,591Posts

    Re: [XHTML/JS] Simple BBCode editor

    Very good job.

  5. #5
    Alpha Member Hammad is offline
    MemberRank
    May 2007 Join Date
    Great BritainLocation
    1,997Posts

    Re: [XHTML/JS] Simple BBCode editor

    Quote Originally Posted by Pieman View Post
    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.

  6. #6
    Banned Monsta. is offline
    BannedRank
    Jun 2008 Join Date
    England - MerseLocation
    1,221Posts

    Re: [XHTML/JS] Simple BBCode editor

    This is good!

    Good work man ;)

  7. #7
    :-) s-p-n is offline
    DeveloperRank
    Jun 2007 Join Date
    Next DoorLocation
    2,098Posts

    Re: [XHTML/JS] Simple BBCode editor

    I like it!

    Did you set-up the display methods yet?

    Like:
    PHP Code:
    <?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?



Advertisement