Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

No inline form support #7

Open
majdal opened this issue Feb 10, 2011 · 3 comments
Open

No inline form support #7

majdal opened this issue Feb 10, 2011 · 3 comments
Labels

Comments

@majdal
Copy link

majdal commented Feb 10, 2011

Inline TextField don't seem to be supported.

@pydanny
Copy link
Owner

pydanny commented May 10, 2011

Do you mean in the admin tool system?

@majdal
Copy link
Author

majdal commented May 10, 2011

yeah - i could get it to work for regular forms, but not inline forms...

@mhulse
Copy link
Contributor

mhulse commented Sep 18, 2011

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants