- Issue created by @osopolar
Follow-up to π Current Gin version does not work with media_library_edit Active .
Gin 3.0.0-rc11: The save button is not shown on media modal edit (using media_library_edit).
Try to edit an articles teaser image, there is no Save button.
1) Do not enable sticky action buttons in theme settings
2) Implement hook_gin_content_form_routes_alter() to remove all content from routes on Xml Http Requests by:
/**
* Alter the registered routes to enable or disable Ginβs edit form layout.
*
* @param array $routes
* The list of routes.
*
* @see GinContentFormHelper->isContentForm()
* @see hook_gin_content_form_routes()
*/
function fle_helper_gin_content_form_routes_alter(array &$routes) {
// Do not use gin content edit form layout in ajax context (overlays).
if (\Drupal::request()->isXmlHttpRequest()) {
$routes = [];
}
}
Active
7.3
Code