Changes between Version 2 and Version 3 of AddWYSIWYGEditor


Ignore:
Timestamp:
Jun 1, 2006, 9:57:56 PM (19 years ago)
Author:
James Bennett
Comment:

Add note for how to do this in post-m-r Django

Legend:

Unmodified
Added
Removed
Modified
  • AddWYSIWYGEditor

    v2 v3  
    1 
    21=== TinyMCE ===
    32
     
    5756}}}
    5857
     58Note 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{{{
     61class 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
    5972Basically '''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.
    6073
Back to Top