File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Rich Text Editor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Rich Text Editor" Watch "Rich Text Editor" New topic
Author

Rich Text Editor

marten kay
Ranch Hand

Joined: Feb 03, 2007
Posts: 178

I would like to develop a Rich Text Editor in javascript that I can attach to an array of Divs with a click, abd have the toolbar remaining at the top of the page in predefined place. With one click, I want to make an array of Divs editable and placed inside a form that can be submitted back to the server for an update.

The RTE does not need to be that rich, I only want to be able edit text, make bold, italic and underline and add predefined span styles. Not adding/editing of tables images and the like.

Can DOJO help out here?


when in doubt put it in parenthesis and stick a dollar sign in front of it, only good can come from this.
Vikrant Korde
Greenhorn

Joined: Jun 16, 2008
Posts: 9
Dojo is a framework which is having rich javascript functions which can provide the functionality by making the page rich in functionality without making server heavy.
however it also has good support for AJAX. the way you have explained for Div array,
you need to have dufferent forms in each div and all this information can be submitted individually.
in case you need to submit the information in a whole bunch, then have a single Form and keep on adding these Div elements to that form object. at the end submit whole Form to the server.
On server you need to handle this information properly.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

Marten,
There's an online sample where you can try out Dojo's text editor widget.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Vikrant Korde
Greenhorn

Joined: Jun 16, 2008
Posts: 9
Nice link for examples.
marten kay
Ranch Hand

Joined: Feb 03, 2007
Posts: 178

Thanks Jeanne, Thanks Vikrant

This indeed is an impressive example, seems like Dojo is the way to go.

Marten
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Hi Author,

The Question I asked here in the same as the thread topic RTE (Rich Text Editor) is related to my query..

In past days, while implementing RTE into my application, I come across with the one issue regarding putting the text with < > characters into RTE, for example <<text>>.

if you put this whole string '<<text>>' into your RTE through JavaScript function, then it just showing to you '<>' in the RTE output..

According to me the RTE is considered this string as HTML tag, because if you enter the same string again after into the RTE, then display it before into the 'javascript alert' there you can find.. (This is what I am thinking)

please any one enlighten on this issue, or share what is actually happened at the back end..

Thanks,
[ October 01, 2008: Message edited by: Muhammad Saifuddin ]

Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

This thread is still waiting for the reply..
[ October 05, 2008: Message edited by: Muhammad Saifuddin ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rich Text Editor
 
Similar Threads
FireFox, taking back the web?
Need pointers for a Rich text editor
text editor
Validation for rich:editor using JavaScript
Change Text area's Limited Text Color