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

Easier integration #58

Open
PetrDlouhy opened this issue Dec 21, 2015 · 2 comments
Open

Easier integration #58

PetrDlouhy opened this issue Dec 21, 2015 · 2 comments

Comments

@PetrDlouhy
Copy link

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
Copy link
Owner

pydanny commented Dec 21, 2015

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

@PetrDlouhy
Copy link
Author

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.

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

No branches or pull requests

2 participants