Oops, I made an error copying my code across. I forgot to call the
parent class' contribute_to_class method:

class RichTextField(models.TextField):
    "A rich text editor field which provides a WYSIWYG editor
component."
    def contribute_to_class(self, cls, name):
        # Automatically add TinyMCE JavaScript libraries.
        opts = cls._meta
        opts.admin.js.append('js/tiny_mce/tiny_mce.js')
        opts.admin.js.append('js/tiny_mce/textareas.js')
        super(RichTextField, self).contribute_to_class(cls, name)

    def get_manipulator_field_objs(self):
        return [common_forms.RichTextField]


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to