Changes between Version 2 and Version 3 of AddWYSIWYGEditor
- Timestamp:
- Jun 1, 2006, 9:57:56 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AddWYSIWYGEditor
v2 v3 1 2 1 === TinyMCE === 3 2 … … 57 56 }}} 58 57 58 Note that the above only works in Django 0.91 and older; for versions more recent than this, use the following as an example: 59 60 {{{ 61 class Document(models.Model): 62 # model fields are here 63 64 class Admin: 65 # various admin options are here 66 js = ( 67 '/tiny_mce/tiny_mce.js', 68 '/appmedia/admin/js/textareas.js', 69 ) 70 }}} 71 59 72 Basically '''js''' option includes tuple items as !JavaScript files in the header of CRUD pages for this model (see [http://www.djangoproject.com/documentation/model_api/#admin-options Django Model Reference / Admin Options]). The first script is the main TinyMCE file. '' If you use TinyMCE compressor, include '/tiny_mce/tiny_mce_gzip.php' instead.'' The second script is your configuration file created in step !#2. 60 73