I've noticed a pretty weird issue. I am using some custom templates for the insert code, mostly because I'm using bbcode on my site. I found that my custom, theme-supplied template files were only getting used sporadically, and I narrowed it down to my use of an admin theme (Rubik).
Here's the scenario:
- When a node edit page loads with previously uploaded images, and thus, has Insert buttons rendered during the actual page load, the admin theme is used.
- When a new item is uploaded, the site's theme is used.
I believe the discrepancy here lies in the fact that the new uploads occur in an ajax session, which probably makes a call to the site which is bootstrapped outside of the admin area, and thus, believes the theme in use is the main site theme.
I'm really not sure what a good solution would look like. A select to choose a specific theme to provide the override files, perhaps? That doesn't seem very elegant though.
Comments
Comment #1
quicksketchAre you using the Admin module to force the Rubik theme to load? This could be an oddity in that module more than a problem with Insert. Potentially this may need to moved to FileField, since it should be the one setting the admin theme in its own AJAX callback, not Insert.
Comment #2
quicksketchThis probably won't be fixed, at least not in Insert (which doesn't provide the AJAX callback anyway).