• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Rich Text Editor

 
Ranch Hand
Posts: 226
1
jQuery Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nice link for examples.
 
marten koomen
Ranch Hand
Posts: 226
1
jQuery Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Jeanne, Thanks Vikrant

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

Marten
 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This thread is still waiting for the reply..
[ October 05, 2008: Message edited by: Muhammad Saifuddin ]
 
Yeah, but how did the squirrel get in there? Was it because of the tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic