diff --git a/core/modules/edit/edit.module b/core/modules/edit/edit.module index bc7b314c1800..f425a69d2329 100644 --- a/core/modules/edit/edit.module +++ b/core/modules/edit/edit.module @@ -36,6 +36,12 @@ function edit_page_build(&$page) { return; } + // In-place editing is only supported on the front-end. + $path = \Drupal::request()->attributes->get('_system_path'); + if (path_is_admin($path)) { + return; + } + $page['#attached']['library'][] = array('edit', 'edit'); }