• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rich Text Editor

 
marten kay
Ranch Hand
Posts: 188
Java jQuery Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Vikrant Korde
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34870
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marten,
There's an online sample where you can try out Dojo's text editor widget.
 
Vikrant Korde
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice link for examples.
 
marten kay
Ranch Hand
Posts: 188
Java jQuery Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne, Thanks Vikrant

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

Marten
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This thread is still waiting for the reply..
[ October 05, 2008: Message edited by: Muhammad Saifuddin ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic