emencia / emencia-django-newsletter

An app for sending newsletter by email to a contact list.
189 stars 72 forks source link

WYSIWYG #11

Closed matuskopo closed 14 years ago

matuskopo commented 14 years ago

Hi,

do you plan to put there any WYSIWYG editor for newsletter's body editing? If not, I'll put it on my own ;)

Fantomas42 commented 14 years ago

Hi,

no I don't plan to adding any WYSIWYG editor the newsletter's body. Because it can be done easily by customizing the admin class.

Here a simple example. :

admin.site.unregister(Newsletter)

class NewsletterTinyMCEForm(forms.ModelForm): content = forms.CharField(widget=TinyMCE(attrs={'cols': 150, 'rows': 80}))

class Meta:
model = Newsletter

class NewsletterTinyMCE(NewsletterAdmin): form = NewsletterTinyMCEForm

admin.site.register(Newsletter, NewsletterTinyMCE)

Thank you for your support.