Improve _editor_js.html deprecation message

The template will be removed in a future release regardless if the user
has overridden the template or not.

When overriding templates, you use a path relative from a "templates"
directory. The "wagtail/admin/templates" directory is an implementation
detail that users do not need to know, and might be confusing to mention.
pull/13036/head
Sage Abdullah 2025-04-15 12:39:58 +01:00
rodzic aff18f634f
commit 490ad5b521
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: EB1A33CC51CC0217
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -197,8 +197,8 @@ The confirm bulk move view and the chooser modal view for choosing the new locat
The `insert_editor_js` hook will continue to be output when editing pages, as documented.
### Deprecation of `wagtail/admin/templates/wagtailadmin/pages/_editor_js.html` template
### Deprecation of `wagtailadmin/pages/_editor_js.html` template
If your project overrides the undocumented template partial `wagtail/admin/templates/wagtailadmin/pages/_editor_js.html` to inject custom JavaScript into the Wagtail admin, this template will be removed in a future release.
The undocumented template partial `wagtailadmin/pages/_editor_js.html` has been deprecated and will be removed in a future release.
Instead, follow the documented approaches to either use the [](insert_editor_js) hook or the [](insert_global_admin_js) hook.
If your project overrides the template to inject custom JavaScript into the Wagtail admin, you should follow the documented approaches to either use the [](insert_editor_js) hook or the [](insert_global_admin_js) hook instead.