Share on Google+Share on Google+

Dojo Editor Example

In this example, you will learn about the dojo editor.

Dojo Editor Example


In this example, you will learn about the dojo editor.

Editor: This is a Dijit's Rich Text editor, Dijit.Editor, is a text box that designed to look as a word processor. It works like a word processor. The features of editor is follow:

  1. Toolbar
  2. HTML output, and 
  3. Plugin architecture 

Which supports new commands, new buttons and other new features also.

The default configuration of Dijit.Editor has a toolbar on the top to the editor section, that contains Copy, Cut, Paste, Italic, Underline, Numbered, Bulleted list, Indent lift and Indent right.

Here is the code of Example:


<title>Editor Demo</title>

 <style type="text/css">
  @import "../dijit/themes/soria/soria.css";
  @import "/resources/dojo.css";

  <script type="text/javascript" src="dojo.xd.js" djConfig="parseOnLoad: true"></script>

  <script type="text/javascript">

<body class="soria">

  <textarea name="field" dojoType="dijit.Editor"> 
  This tips is light towards people with some JavaScript knowledge, priestly used 
another JavaScript (Ajax) framework before, now have a real need to use some of the 
features found in dojo. In this tips, learn about the dojo and its directory structure. 
The purpose of this tips, for a new user learn to dojo then you need to know about the 
what is dojo and its directory structure.



Posted on: November 1, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: Dojo Editor Example  

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
June 15, 2012

Sorry, but without seieng you code I can't tell you exactly what to do. But have a look at the dojoConfig in the source of the . You can put the DialogCofirm.js anywhere you like and you don't need the snet at all. That's just to map the:var dialog = new snet.DialogConfirm({}) and the require([snet/DialogConfirm]to:/library/ using:var dojoConfig = {...packages: [{...{'name': 'snet', 'location': '/library/' }]};You will also have to change the declare( snet.DialogConfirm') in DialogConfirm.js