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

Trying to add new inlines just shows up as text areas. Could be similar to an earlier issue #90

Closed
hagsteel opened this issue Apr 9, 2014 · 12 comments
Labels

Comments

@hagsteel
Copy link

hagsteel commented Apr 9, 2014

Trying to add new inlines just shows up as text areas, no TinyMCE in sight.
Could be similar to an earlier issue, however it was closed years ago so perhaps this is a new one.

I've put a project on Github so all settings etc. can be seen: https://github.com/jonashagstedt/tinymceissue

Versions:

  • Django==1.6.2
  • django-tinymce==1.5.2
@jaap3
Copy link
Contributor

jaap3 commented Jul 10, 2014

Having the same issue. Pretty sure it's a new one as TinyMCE works fine in projects that don't use Django 1.6

@jaap3
Copy link
Contributor

jaap3 commented Jul 10, 2014

Seems that Django's upgrade to jQuery 1.9 is causing the cloned inline javascript to not be executed.

@jaap3
Copy link
Contributor

jaap3 commented Jul 10, 2014

Yep, it's because of jQuery 1.9. The execution of cloned inline javascript tags is no longer supported: http://jquery.com/upgrade-guide/1.9/#loading-and-running-scripts-inside-html-content

Not sure how to fix that as django-jquery relies on the previous behaviour for the inline tinymce fields to initialize.

@jaap3
Copy link
Contributor

jaap3 commented Sep 15, 2014

@jonashagstedt can you try the current git version? It should be fixed in there

@radzhome
Copy link

using version 1.5.3, and adding inlines using the 'Add another inline' does not initialize the tinymce widget correctly, it seems to be disabled. Do we need a custom onAfterAdded to initialize it properly every time you add a new inline?

@hiltonc
Copy link

hiltonc commented Apr 29, 2015

I'm experiencing the same problem.

@hiltonc
Copy link

hiltonc commented Apr 29, 2015

http://stackoverflow.com/a/19663437/50175 fixed it for me.

@Natim
Copy link
Collaborator

Natim commented Jul 23, 2015

Can you try if this is fixed with current master?

@hiltonc
Copy link

hiltonc commented Jul 26, 2015

I just tried with the latest Grappelli and the current master of django-tinymce, no dice. I also tried without Grappelli, still doesn't work.

@vanadium23 vanadium23 added the bug label Feb 29, 2016
@winfieldco
Copy link

winfieldco commented May 11, 2016

I'm using an old version 1.5.3, but this fixed it for me, just changing the javascript to find the correct row that contained the tinymce to initialize:

winfieldco@d5994d7

@Natim Natim closed this as completed Apr 10, 2020
@jgillard
Copy link

jgillard commented Mar 4, 2021

We've also just run into this issue while integrating TinyMCE into Django 3.1.7. This is from a TabularInline.

Screenshot 2021-03-04 at 11 13 15

@claudep
Copy link
Contributor

claudep commented Mar 4, 2021

I would suggest creating a new ticket (you can reference this one). It would help if you could tell if any JS error occurs, or if you could debug what's happening in your case in the click handler at the bottom of the init_tinymce.js file. It is probably related to your specific projects, as I can confirm it works in at least in one of mine with latest Django.

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

No branches or pull requests

8 participants