how to create a web based text editor?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Abhilash Etikala
    New Member
    • Jan 2010
    • 21

    how to create a web based text editor?

    Any suggestions in how to create editor in same way as Gmail editor.
    I want to know the mechanism involved in transliteration support by editor.

    As when space is triggered the AJAX call is made and the text is replaced with the response text.How javascript is written to enable this effect to happen??
  • dgreenhouse
    Recognized Expert Contributor
    • May 2008
    • 250

    #2
    I might behoove you to review some JavaScript editors that are currently available before embarking on your own development. If it's just a matter of using an editor on a page, I'd opt for using an already existing solution.

    As far as transliteration support goes... That's a different animal altogether.

    TinyMCE: http://tinymce.moxiecode.com/
    widgEditor: http://www.themaninblue.com/experiment/widgEditor/
    openwysiwyg: http://www.openwebware.com/ (seems a little buggy)

    Here's a little tutorial on how to build a wysiwyg JS editor:
    JavaScript is a programming language that is primarily used to create interactive and dynamic website content. It can be used to manipulate the Document Object Model (DOM) in a web page, making it a popular choice for creating dynamic user interfaces and web applications.

    I can't vouch for it...

    Comment

    • Abhilash Etikala
      New Member
      • Jan 2010
      • 21

      #3
      Thank you...sir for your suggestions

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        As when space is triggered the AJAX call is made and the text is replaced with the response text.How javascript is written to enable this effect to happen??
        If you want to know this part only, then use the onkeyup or onkeypress event. If a space is pressed, take the last word and pass it to the server-side script which does the conversion and returns the converted output to replace the last word.

        Comment

        • Abhilash Etikala
          New Member
          • Jan 2010
          • 21

          #5
          but iam able to do the same thing for one word but how to handle the second time after the space is entered.Since the whole value will be sent to the server side script in addition to the previous word.
          help.....

          Comment

          • RamananKalirajan
            Contributor
            • Mar 2008
            • 608

            #6
            Abhilash,
            get the string in script and check for lastIndexOf(" ") and then extract the string after that index and send it to the server for replacing

            Thanks and Regards
            Ramanan Kalirajan

            Comment

            • Abhilash Etikala
              New Member
              • Jan 2010
              • 21

              #7
              Hi after a long time....
              I got the solution from the below link where i can type in local language for all my forms in my application.
              JavaScript provided in the below site allows users to type in local language...
              on every key press the respective language character is going to displayed instead of every space like Gmail...


              finally got the solution, of course not exactly like Gmail editor but to an extent...
              Thank You every body for participating.. .for your valuable discussion...

              Comment

              Working...