Hi there,
On our site we have editors add content using the Seven theme.
When I bring up the Entity Embed Dialog from my WYSWIG button I can see (from Chrome Network tab) that it goes back to the server and loads my default theme. This ends up breaking the look of my buttons, and what have you.
I think I have found a solution to this. It involves telling Drupal that the URL of the dialog should be treated as an admin path. I added this hook into one of my own modules, but I think it might be good in Entity Embed (please).
/**
* Implements hook_admin_paths().
*/
function entity_embed_admin_paths() {
if (variable_get('node_admin_theme')) {
$paths = array(
'entity-embed/dialog/*' => TRUE,
);
return $paths;
}
}| Comment | File | Size | Author |
|---|---|---|---|
| #3 | ajax-base-page-theme-2561321-3.patch | 466 bytes | devin carlson |
Comments
Comment #2
devin carlson commentedMoving to the Dialog queue.
Comment #3
devin carlson commentedThe Dialog issues are fixed, the remaining task is to use
ajax_base_page_themeas thetheme callbackfor the Entity Embed dialog form.Comment #4
devin carlson commentedTested #3 and committed to Entity Embed 7.x-3.x.