jazzband / django-tinymce

TinyMCE integration for Django
http://django-tinymce.readthedocs.org/
MIT License
1.28k stars 317 forks source link

Not working on dynamically added inline forms #348

Closed lostpoint-ru closed 3 years ago

lostpoint-ru commented 3 years ago

Django==3.1.5 django-tinymce==3.2.0

HTMLField is used in a nested class, django admin is configured to display nested class as TabularInline. When parent class admin page is loaded, all existing inline forms are correctly transformed to TinyMCE editor fields, but when I click on "add new %childclass%", a new inline form instance is created with a regular TextField instead of TinyMCE.

tinymce-inline

claudep commented 3 years ago

Would you be able to test with django-tinymce master? Otherwise, having a sample project which reproduces the error would be great.

lostpoint-ru commented 3 years ago

Thanks for reply.

Just tried django-tinymce master manually cloned from github and it seems to work properly.

Is there some recent relevant fixes waiting to be merged into release?

Natim commented 3 years ago

I just released 3.3.0 so that you can benefit from the fix for this issue.

lostpoint-ru commented 3 years ago

Thanks :)

vvalentinvolkov commented 1 year ago

I have the same issue on django = 4.1 and django-tinymce = 3.6.1.

Every first added inline has a regular TextField. I can save object than added before inlines work good but if i add another one i get regular TextField again. Every next added inline are good.

So problem is only in the first added but not saved inline.

claudep commented 1 year ago

@vvalentinvolkov It's worth nothing commenting on closed issues. Please create a new issue and provide a small sample project which can be used to demonstrate the problem.