django-wysiwyg
django-wysiwyg copied to clipboard
No inline form support
Inline TextField don't seem to be supported.
Do you mean in the admin tool system?
yeah - i could get it to work for regular forms, but not inline forms...
As a temp work around, you can add the css class "ckeditor" to your inlined textareas:
from django import forms
from app.models import Foo
class FooForm(forms.ModelForm):
description = forms.CharField(widget=forms.Textarea(attrs={'class':'ckeditor'}))
class Meta:
model = Media
CKEditor looks for that class out of the box.
And then add form = FooForm
to your model admin (don't forget to import FooForm at the top).
That worked for me.