pydanny / django-wysiwyg

A Django application for making Django textareas rich text editors. Certainly as a template tag and possibly as a form widget.
http://django-wysiwyg.readthedocs.org
MIT License
465 stars 63 forks source link

Easier integration #58

Open PetrDlouhy opened 8 years ago

PetrDlouhy commented 8 years ago

Making a TextField to be wysiwig editable is quite unpleasant and unflexible with django-wysiwig. Especially making new admin templates. I would suggest something like:

class MassCommunicationAdmin(WysiwigAdminMixin, admin.ModelAdmin):
    list_display = ('text_field',)
    wysiwig_fields = ('text_field',)

I could try to program this solution, but I want to know more opinions. What do you think about this? Is there any obstacle, or conceptual problem with this?

pydanny commented 8 years ago

Hi @PetrDlouhy, no obstacles! Go ahead and do it!

PetrDlouhy commented 8 years ago

I looked at the code, and it might be quite easy. But then I thought about it, and I think it would be better to make wysiwyg widget, so it could be used both in AdminForm and non-admin forms.