SitePoint Sponsor

User Tag List

Page 1 of 4 1234 LastLast
Results 1 to 25 of 88

Thread: Textarea Editor

  1. #1
    SitePoint Wizard dominique's Avatar
    Join Date
    Dec 2000
    Location
    orbis terrarum
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Textarea Editor

    I'm posting this here because I don't know if this is a Javascript thing or a PHP thing.

    I've been looking for this without any luck. I know it exists (and it's probably been mentionned here many times before), but I don't know what to call it so I can't find it in any of my searches.

    I have a textarea in a form that then sends the information typed into it to a MySQL database using PHP. I want to give end users access to this textarea, so I would like to make sure that they don't abuse the system.

    Here's what I would like:
    • I would like all http:// and www URLs to be automatically parsed into <a href="http://">http://</a> hyperlinks.
    • I would like all line breaks the user types into the textarea to be turned into <br /> tags, so that the line breaks show up when parsed into an HTML page.
    • And I would like all other code to be ignored (kind of like here at SPF).
    • Also colour, italic, bold, etc. would be a bonus, but not necessary.
    In essence, I'm looking for something very similar to that used here at SitePoint Forums.

  2. #2
    SitePoint Cofounder Mark Harbottle's Avatar
    Join Date
    Mar 2000
    Location
    Melbourne, Australia
    Posts
    540
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Glad you asked!

    The whisper is that SitePoint is releasing a product called "Editize" which does exactly what you described and more..

    More Info for those interested...

    - Editize is a browser-based rich-text editing component for any CMS.

    - Editize simply replaces the HTML <TEXTAREA> field in any Web Form.

    - Editize outputs standards-compliant XHTML.

    - Editize lets you customize the content formatting options.

    - Editize integrates seamlessly with any existing Web Application.

    - Editize works across most Browsers and Operating Systems.·

    - Editize can easily be deployed in minutes.


    Editize will be released within the next two weeks!


    Here's a screenshot of Editize embedded in a CMS:


    Last edited by Mark Harbottle; Apr 29, 2002 at 21:15.
    Mark Harbottle - Co-Founder
    sitepoint.com - Master The Web!

  3. #3
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I do have a php script which can cover that (I think) very basic but it does line return, breaks , paragraphs, bold, italics, list etc

    If you want a sqizz at the code shout and I will post it - essentially basic but might suit until Editize is available

    Sarah
    Regular user

  4. #4
    SitePoint Wizard dominique's Avatar
    Join Date
    Dec 2000
    Location
    orbis terrarum
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mark, looks promissing, and quite elegant if I may say so! The apprearances of the drop-down box and the scrollbar lead me to conclude that it is a Java applet, or am I mistaken?


    Sarah, yes please, I'd like to have a look at that code if you don't mind! Thank you!

  5. #5
    Serial Publisher silver trophy aspen's Avatar
    Join Date
    Aug 1999
    Location
    East Lansing, MI USA
    Posts
    12,937
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ya its a java applet.

    I've used it, its real spiffy - definitely worth the price.
    Chris Beasley - I publish content and ecommerce sites.
    Featured Article: Free Comprehensive SEO Guide
    My Guide to Building a Successful Website
    My Blog|My Webmaster Forums

  6. #6
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mark...

    How much will it be?
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  7. #7
    Serial Publisher silver trophy aspen's Avatar
    Join Date
    Aug 1999
    Location
    East Lansing, MI USA
    Posts
    12,937
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I heard it will be $149.
    Chris Beasley - I publish content and ecommerce sites.
    Featured Article: Free Comprehensive SEO Guide
    My Guide to Building a Successful Website
    My Blog|My Webmaster Forums

  8. #8
    SitePoint Cofounder Mark Harbottle's Avatar
    Join Date
    Mar 2000
    Location
    Melbourne, Australia
    Posts
    540
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    We're actually launching it at the introductory price
    of $127, which includes an unlimited user license. Our goal is obviously to get it out there to as many Web Developers as possible begin with, hence the lower price point...
    Mark Harbottle - Co-Founder
    sitepoint.com - Master The Web!

  9. #9
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Will it:

    -= Have "image upload" capabilities?
    -= Be compatible with a variety of scripting languages?
    -= Give the user the abililty to insert links, classes and images?
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  10. #10
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by creole
    Will it:

    -= Have "image upload" capabilities?
    Version 1.0 is for editing hypertext content only. Image support is planned for a later version (in fact, we have it working in buggy fashion in an internal prototype). We have yet to decide how image support will be implemented (e.g. will it offer an integrated image upload facility, or just allow you to insert images given their URLs?), and this will depend on user feedback.
    -= Be compatible with a variety of scripting languages?
    Yes. We are launching with support for PHP, ASP, and ASP.NET. We also provide a JavaScript class that can be used to support any other server-side language until we can provide a specialized API for it.

    -= Give the user the abililty to insert links, classes and images?
    Hyperlinks are supported (see the last two buttons on the toolbar in the screenshot above).

    The 'Highlighted text' feature works by outputting a <span class="highlighted"> tag which you can style however you wish (and configure the editor to match that style during editing). All the other formatting features output basic HTML tags, which you can also style as you see fit using CSS.

    Full support for defining your own paragraph styles with CSS syntax is planned for a later version, if user demand supports its development.

    Hope that answers your questions!
    Last edited by Kevin Yank; Apr 30, 2002 at 20:06.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  11. #11
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No Cold Fusion then?

    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  12. #12
    SitePoint Cofounder Mark Harbottle's Avatar
    Join Date
    Mar 2000
    Location
    Melbourne, Australia
    Posts
    540
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    We can easily do an API for Cold Fusion if there is demand for it. We'll basically support whatever you need. We don't want any limitations whatsoever to where Editize maybe used. We'll support all languages, operating systems and browsers. And you won't pay any extra for this extensive portability.

    There will also be a Developer Discount Scheme in place for Web Development Companies and Freelancers who build Editize into their clients Content Management Systems. It basically gets cheaper and cheaper every license you buy. You can on-charge the client either at the discounted price or the full price (and make a profit). It's up to you.
    Mark Harbottle - Co-Founder
    sitepoint.com - Master The Web!

  13. #13
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Note that the JavaScript API I mentioned makes it perfectly compatible with Cold Fusion. It just isn't quite as convenient as a <CF_EDITIZE> tag yet.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  14. #14
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what about perl?

    can't say i'm keen on the color scheme though

  15. #15
    SitePoint Cofounder Mark Harbottle's Avatar
    Join Date
    Mar 2000
    Location
    Melbourne, Australia
    Posts
    540
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can't say i'm keen on the color scheme though
    What do you mean color scheme? There is no color scheme! The yellow section is the CMS, the Editize software is embedded in the CMS and is colored in gray only.

    Editize is simply a rich-text editor replacement for the <Textarea> tag.
    Last edited by Mark Harbottle; Apr 30, 2002 at 23:37.
    Mark Harbottle - Co-Founder
    sitepoint.com - Master The Web!

  16. #16
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    A Perl module will be developed if there's demand for it. Meantime, Perl can generate the JavaScript to use the JavaScript API we provide, and can process the submitted HTML just fine.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  17. #17
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    arr k, nice, I think i really need to wake up :P

    Only thing is arn't there enough of these about for free (in javascript), are there any unique features that set this editor aside from others as i only see about 6 options where as others have a lot more features? No doubt there will be more implementations, but what makes it worth the money?

  18. #18
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    For one it works in all browsers and on all OSes whereas the free javascript based ones you are referring to work in Internet Explorer 5+ on the Windows operating system only.
    Wayne Luke
    ------------


  19. #19
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    That's the main thing, yes. Also, this Java applet supports features like multilevel undo/redo, and system clipboard interaction (including importing formatting from MS Office).
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  20. #20
    Wanna-be Apple nut silver trophy M. Johansson's Avatar
    Join Date
    Sep 2000
    Location
    Halmstad, Sweden
    Posts
    7,400
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I'm gonna throw out all my sliced bread now.
    Mattias Johansson
    Short, Swedish, Web Developer

    Buttons and Dog Tags with your custom design:
    FatStatement.com

  21. #21
    Wanna-be Apple nut silver trophy M. Johansson's Avatar
    Join Date
    Sep 2000
    Location
    Halmstad, Sweden
    Posts
    7,400
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    We're actually launching it at the introductory price
    of $127, which includes an unlimited user license. Our goal is obviously to get it out there to as many Web Developers as possible begin with, hence the lower price point...
    Unlimited user licence? Does that mean I can use it on my clients web sites?
    Mattias Johansson
    Short, Swedish, Web Developer

    Buttons and Dog Tags with your custom design:
    FatStatement.com

  22. #22
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Yep, Mattias. That's the main idea.

    Just FYI, the code was pretty much finalized today. Just a couple of licensing decisions to be made before launch, which you can expect any day now!
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  23. #23
    SitePoint Evangelist Chromate222's Avatar
    Join Date
    May 2002
    Posts
    422
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There's a similar product here:

    http://www.labs4.com/go/index.php?p=...&w=htmleditbox

    I've not actually used it, but it should do everything the original poster required. I think it's pretty PHP based, though I haven't looked into it in great depth. Only $9.95 per license too! So could work out cheaper depending on how copies you need to use.

    I hope this doesn't get censored, as I know sitepoint are getting pretty commercial. But it COULD be an alternative. Not having used either yet, I'm not leaning one way or the other

    - Rich

  24. #24
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Chromate222
    There's a similar product here:

    http://www.labs4.com/go/index.php?p=...&w=htmleditbox

    I've not actually used it, but it should do everything the original poster required. I think it's pretty PHP based, though I haven't looked into it in great depth. Only $9.95 per license too! So could work out cheaper depending on how copies you need to use.
    - Rich
    Nice looking.. Unfortunately, it only works on Internet Explorer 5.5+ and Windows.
    Wayne Luke
    ------------


  25. #25
    SitePoint Evangelist Chromate222's Avatar
    Join Date
    May 2002
    Posts
    422
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by W. Luke


    Nice looking.. Unfortunately, it only works on Internet Explorer 5.5+ and Windows.
    From what I can tell the only thing that would limit it to windows is the use of active-x controls for stuff like, importing documents from MS Word. I reckon it probably would work on NS too, just might be a little disfunctional

    May be useful for an intranet site or similar, where you know what people are going to be using. Or if you just want to risk it!


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
  •