SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: simple editor

  1. #1
    SitePoint Zealot
    Join Date
    Apr 2004
    Location
    RS, Brazil
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    simple editor

    Hi guys!

    I'm trying to create some kind of javascript editor to "replace" a these simple textareas. I'm creating some features to generate dynamic html when people type on it. (i know there are dozens of these editores around, but i just need two or three features, so i'm giving it a try).

    My first goal is: When my user is typing in the textarea and hits "<enter>" i don't wanna it to insert just a simple "\n", i wanna a way to format it into <p></p>.

    I have no clue how to do this :P

    any help will be much appreciated.

    thanks in advice
    -bigo

  2. #2
    SitePoint Addict
    Join Date
    Mar 2003
    Location
    UK
    Posts
    245
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could try Tiny MCE which is very configurable, to as much or as little formatting options as you want. the standard code will replace all the 'textareas' on a page.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •