Add snippetChooser URL as removed from Wagtail
This commit is contained in:
parent
3fb799b51e
commit
ba0246a2ec
1 changed files with 4 additions and 2 deletions
|
@ -68,10 +68,12 @@ def editor_js():
|
||||||
return format_html(
|
return format_html(
|
||||||
"""
|
"""
|
||||||
<script>
|
<script>
|
||||||
window.chooserUrls.snippetLinkModelChooser = '{0}';
|
window.chooserUrls.snippetChooser = '{0}';
|
||||||
window.chooserUrls.snippetEmbedModelChooser = '{1}';
|
window.chooserUrls.snippetLinkModelChooser = '{1}';
|
||||||
|
window.chooserUrls.snippetEmbedModelChooser = '{2}';
|
||||||
</script>
|
</script>
|
||||||
""",
|
""",
|
||||||
|
reverse('wagtailsnippets:choose_generic'),
|
||||||
reverse("wagtaildraftailsnippet:choose-snippet-link-model"),
|
reverse("wagtaildraftailsnippet:choose-snippet-link-model"),
|
||||||
reverse("wagtaildraftailsnippet:choose-snippet-embed-model"),
|
reverse("wagtaildraftailsnippet:choose-snippet-embed-model"),
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue