Django-TinyMCE with Multiple Forms
问题 I'm trying to create a single HTML page with multiple instances of TinyMCE editors. The number of editors varies by the request; so I can't enumerate them and initialize them individually. Here is my code: views.py: from tinymce.widgets import TinyMCE class ThreadForm(forms.Form): subject = forms.CharField(max_length=300, widget=forms.TextInput(attrs={'size':'100'})) body = forms.CharField(widget=TinyMCE()) class MessageForm(forms.Form): thread_pk = forms.IntegerField() body = forms.CharField