Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Rich text editor

    Hello,

    How can i create rich text editor with Javascript?

    Thanks,
    Azer

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,300
    Thanks
    203
    Thanked 2,561 Times in 2,539 Posts
    You can't. JavaScript is not remotely suited to this. in any case, why do you want to re-invent the wheel?

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Perhaps they are looking for something more along the lines of the post reply box?

    http://www.dynamicdrive.com/dynamici...iwyg/index.htm
    http://www.dynamicdrive.com/dynamici...itor/index.htm
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    Regular Coder
    Join Date
    Sep 2005
    Posts
    535
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Along the lines of Aerospace... I can see two different scenerios.

    First one would be where some text gets displayed on a blank html page which includes Rich Text Markup Language (does such a term exists?). The user would then be able to save the page as an .rtf file and open it on their own .rtf-editor application (eg WordPad). This might not work because saving an html page as a file would include its own markup text as well as what gets displayed on the screen for the rich text format.

    The second would be to have a WordPad-type text editor embedded in a page, much like the "reply" or "thread" generating editors used in this forum. In this case you'd need to create buttons and drop-downs, connect them to the text area using JS, perhaps create your own markup language that gets parsed to HTML when viewing the post, etc.

    Either case sounds like a hefty project. You may have better luck seeing if you can get / purchase a text-editor that has already been generated. For example, this site uses vbulletin:
    Code:
    /*======================================================================*\
    || #################################################################### ||
    || # vBulletin 3.6.4
    || # ---------------------------------------------------------------- # ||
    || # Copyright ©2000-2006 Jelsoft Enterprises Ltd. All Rights Reserved. ||
    || # This file may not be redistributed in whole or significant part. # ||
    || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
    || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
    || #################################################################### ||
    \*======================================================================*/
    
    Search Engine Optimization by vBSEO 3.6.1
    If you want answers, write a smart question.

    Yes, someone probably does know how...

    Oh, and if you want to learn, STFW!

  • #5
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Just google for "rich text editor browser" and you'll get tons of results. There are plenty of premade ones if you don't have too specific of requirements.

  • #6
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi again,

    I know a lot of scripts, but I don't know how i can create a wysiwyg editor?

    Thanks.

  • #7
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ..........................
    Last edited by azerkoculu; 01-06-2007 at 01:26 AM.


  •  

    Posting Permissions

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