Changes between Version 5 and Version 6 of AddDojoEditor


Ignore:
Timestamp:
Jun 4, 2006, 3:27:06 AM (18 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AddDojoEditor

    v5 v6  
    11= Add Dojo Editor =
    22
     3This document describes how to add the Dojo Rich Text Editor (Editor2) to the Django Admin-Interface.
     4
     5== Install Dojo ==
     6
    37Download [http://www.dojotoolkit.org Dojo] (kitchen sink) and install it on your webserver in /media/dojo/...
     8
     9== Add the javascript for loading the Editor ==
    410
    511Save the following script as !AddRichTextEditing.js into /media/js/admin/
     
    2531This script looks for the help text "Rich Text Editing." and replaces the associated textarea with the Dojo-Editor. I´m using Editor2, because it´s loading much faster than Editor.
    2632
    27 Define your model like this:
     33== Define the models ==
     34
     35Define your model like this (if you change the help_text make sure to change it in !AddRichTextEditing.js also):
    2836
    2937{{{
     
    4048
    4149[http://www.vonautomatisch.at/django/dojoeditor.jpg Screenshot (Preview)]
     50
     51== Some restrictions ==
     52
     53 * doesn´t work with Safari
     54 * having multiple Editors on one site needs proper testing (especially if you want to share the toolbar)
     55
     56== Hints ==
     57
     58 * Usually, the area for Rich Text Editing stretches vertically when adding content - if you want to have a scrollbar instead, set the "height" in /src/widget/RichText.js.
     59 * You may want to change the styles in order to integrate the RTE: use /src/widget/templates/HtmlEditorToolbar.css - be aware that these styles may clash with the django-styles.
     60
     61== Help ==
     62
     63 * some examples can be found in the [http://archive.dojotoolkit.org/ Dojo Nighlty builds].
     64
Back to Top