Code

Changes between Version 24 and Version 25 of AddWYSIWYGEditor


Ignore:
Timestamp:
07/24/08 15:41:46 (6 years ago)
Author:
toke
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