Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor does not work properly with formsets #444

Open
milosev1c opened this issue Aug 4, 2023 · 3 comments
Open

Editor does not work properly with formsets #444

milosev1c opened this issue Aug 4, 2023 · 3 comments

Comments

@milosev1c
Copy link

milosev1c commented Aug 4, 2023

Django===4.2.4
django-tinymce==3.6.1
Also I use django-admin-sortable==2.3, but this problem appears both with SortableTabularInline and TabularInline

Model looks like that:

class ContentBlock:
    title = models.CharField(max_length=100)
    content = HTMLField()

Inline admin:

class ContentBlockInlineAdmin(SortableTabularInline):
    model = ContentBlock
    extra = 0

As I mentioned before, the same thing happens with TabularInline

When I try to add new row to formset - first row have basic textareafield. Second and following will have tinyMCE editor, but with different settings (I guess it's the default config), and I can't type anything to these. I also can type something to textarea (first added row) and save these changes.
If formset already have fields, they will load as ususal. Same if I set extra = 1 (or more).

Here is screenshot:
image
1st row was saved before;
2nd row was added by clicking "add more" button
3rd and following was added later

@claudep
Copy link
Contributor

claudep commented Jan 3, 2024

Would you be able to test with code from master branch?

@milosev1c
Copy link
Author

@claudep
Hi,
I checked the version from the master branch -- everything working fine

@claudep
Copy link
Contributor

claudep commented Jan 31, 2024

Thanks for checking, I guess a release should be needed now.

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

No branches or pull requests

2 participants