kopia lustrzana https://github.com/wagtail/wagtail
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
rodzic
aff18f634f
commit
490ad5b521
|
@ -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.
|
||||
|
|
Ładowanie…
Reference in New Issue