Simple WYSIWYG editor Only <BR> Tags - Pls Help

Discussion in 'JavaScript' started by samindika, Jul 26, 2007.

  1. #1
    M'm new to javascript.pls help to make a Simple WYSIWYG editor only i want <br> tags. not a complicated editor.
     
    samindika, Jul 26, 2007 IP
  2. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #2
    Why do you need to write your own? There are many js html editors on the net. For example I use simple widgEditor in some cases.
     
    wmtips, Jul 26, 2007 IP
  3. DavidAusman

    DavidAusman Peon

    Messages:
    399
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Also try the FCKeditor or TinyMCE "I think wordpress use this" , those are opensource scripts which is widely used.
     
    DavidAusman, Jul 26, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    If the only thing you want to replace is new line characters with <br> tags, then you don't need a WYSIWYG editor. The new lines are visible in your text area when you hit enter. Now if you want to get the same output on your page after submitting the form, use a function like nl2br() (assuming you're using PHP).
     
    nico_swd, Jul 26, 2007 IP
  5. samindika

    samindika Active Member

    Messages:
    336
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Thanks a lot..




     
    samindika, Jul 27, 2007 IP