Changes between Version 18 and Version 19 of AddWYSIWYGEditor
- Timestamp:
- Jul 9, 2008, 11:58:11 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AddWYSIWYGEditor
v18 v19 77 77 {{{ 78 78 #!python 79 from django import newforms as forms79 from django.newforms import ModelForm 80 80 81 class PageFormWithMedia(forms.ModelForm)81 class TinyMCEPageForm(ModelForm) 82 82 class Media: 83 83 js = ('/js/tiny_mce/tiny_mce.js', 84 84 '/js/tiny_mce/textarea.js',) 85 85 86 class Meta:87 model = MyModel88 89 86 class MyModelOptions(admin.ModelAdmin): 90 form = PageFormWithMedia87 form = TinyMCEPageForm 91 88 92 89 admin.site.register(MyModel, MyModelOptions)