Changes between Version 24 and Version 25 of AddWYSIWYGEditor


Ignore:
Timestamp:
Jul 24, 2008, 5:41:46 PM (16 years ago)
Author:
Thomas Kerpe
Comment:

Added information abvout WYSIWYG in Flatpages (NFA)

Legend:

Unmodified
Added
Removed
Modified
  • AddWYSIWYGEditor

    v24 v25  
    110110  --NL
    111111
     112=== Using TinyMCE with flatpages (newforms) ===
     113In an admin.py in some application add the following:
     114{{{
     115from django.contrib import admin
     116from django.contrib.flatpages.models import FlatPage
     117
     118class FlatPageAdmin(admin.ModelAdmin):
     119    class Media:
     120        js = ('/js/tiny_mce/tiny_mce.js',
     121              '/js/tiny_mce/textarea.js',)
     122
     123# We have to unregister it, and then reregister
     124admin.site.unregister(FlatPage)
     125admin.site.register(FlatPage, FlatPageAdmin)
     126}}}
     127
    112128----
    113129
Back to Top