Connect with Expertise | Find Experts, Get Answers, Share Insights

how to create a web based text editor?

 
Join Date: Jan 2010
Location: Hyderabad
Posts: 21
#1: Jan 22 '10
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's Avatar
E
C
 
Join Date: May 2008
Location: San Francisco
Posts: 154
#2: Jan 23 '10

re: how to create a web based text editor?


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:
http://www.webreference.com/programm...t/gr/column11/
I can't vouch for it...
 
Join Date: Jan 2010
Location: Hyderabad
Posts: 21
#3: Jan 24 '10

re: how to create a web based text editor?


Thank you...sir for your suggestions
acoder's Avatar
E
M
C
 
Join Date: Nov 2006
Location: UK
Posts: 14,979
#4: Jan 31 '10

re: how to create a web based text 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??
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.
 
Join Date: Jan 2010
Location: Hyderabad
Posts: 21
#5: Feb 3 '10

re: how to create a web based text editor?


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.....
RamananKalirajan's Avatar
C
 
Join Date: Mar 2008
Location: Chennai - India
Posts: 513
#6: Feb 3 '10

re: how to create a web based text editor?


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
 
Join Date: Jan 2010
Location: Hyderabad
Posts: 21
#7: Mar 12 '10

re: how to create a web based text editor?


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...

http://www.higopi.com/
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...
Reply