Changes between Version 36 and Version 37 of AddWYSIWYGEditor
- Timestamp:
- Feb 21, 2012, 11:31:49 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AddWYSIWYGEditor
v36 v37 1 This page describes various ways to add a "What you see is what you get" rich text editing function for editing textfields in django. See also [http://lazutkin.com/blog/2005/aug/26/using_tinymce_djangos_admin]. 2 1 3 === Dojo's dijit.Editor === 2 4 3 5 Why Dojo's dijit.Editor? Modular, simple to use, simple to extend, hosted on Google CDN - the only thing you need is to add two simple static files. No file copying, no upgrade hassles, no server-side code. Detailed description can be found in [http://lazutkin.com/blog/2011/mar/13/using-dojo-rich-editor-djangos-admin/ Using Dojo Rich Editor with Django's Admin]. All necessary snippets can be found in [https://gist.github.com/868595 this Gist on Github]. 4 6 5 === TinyMCE === 7 === TinyMCE - Via django-tinymce === 8 9 See the [http://code.google.com/p/django-tinymce/ django-tinymce] application. 10 11 === TinyMCE - Direct === 6 12 7 13 Why TinyMCE? Some reasons are given in [http://www.socialistsoftware.com/post/django-and-tinymce/ Django and TinyMCE] and [http://lazutkin.com/blog/2005/aug/26/using_tinymce_djangos_admin/ Using TinyMCE with Django's Admin]. Try [http://tinymce.moxiecode.com/examples/full.php]. 8 9 '''Note:''' Instead of following the direction below you can also use the [http://code.google.com/p/django-tinymce/ django-tinymce] application.10 11 ''__Warning:__ at present moment (11/26/2005) the Admin (formerly "The new admin") prefixes all js paths with {{{/media/}}} - don't forget to take it into account when you decide where to put (or link) your !JavaScript files. Ticket #914 is filed to resolve the issue.''12 13 There are several free WYSIWYG editors, which can be used with Django's admin pages. Some overview and first hand experience can be found [http://lazutkin.com/blog/2005/aug/26/using_tinymce_djangos_admin/ here].14 14 15 15 In order to use TinyMCE with Django you have to do three things: