Code

Changes between Version 27 and Version 28 of AddWYSIWYGEditor


Ignore:
Timestamp:
09/01/08 07:06:20 (6 years ago)
Author:
krymen16@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AddWYSIWYGEditor

    v27 v28  
    113113In an admin.py in some application add the following: 
    114114{{{ 
    115 from django.contrib import admin 
    116115from django.contrib.flatpages.models import FlatPage 
     116from django.contrib.flatpages.admin import FlatPageAdmin as FlatPageAdminOld 
    117117 
    118 class FlatPageAdmin(admin.ModelAdmin): 
     118class FlatPageAdmin(FlatPageAdminOld): 
    119119    class Media: 
    120120        js = ('js/tiny_mce/tiny_mce.js', 
    121               'js/tiny_mce/textarea.js',) 
     121              'js/tiny_mce/textareas.js',) 
    122122 
    123123# We have to unregister it, and then reregister