Allow external custom scripts for Mosaico
This commit is contained in:
parent
1ea399cbe9
commit
94897b18fd
2 changed files with 3 additions and 3 deletions
|
@ -135,8 +135,8 @@ processes=1
|
||||||
[mosaico]
|
[mosaico]
|
||||||
# Installed templates
|
# Installed templates
|
||||||
templates=[["versafix-1", "Versafix One"]]
|
templates=[["versafix-1", "Versafix One"]]
|
||||||
# Inject custom scripts from public/mosaico/custom/
|
# Inject custom scripts
|
||||||
# customscripts=["some-lib.js", "my-mosaico-plugin.js"]
|
# customscripts=["/mosaico/custom/my-mosaico-plugin.js"]
|
||||||
|
|
||||||
[grapejs]
|
[grapejs]
|
||||||
# Installed templates
|
# Installed templates
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
{{#if editorConfig.customscripts}}
|
{{#if editorConfig.customscripts}}
|
||||||
{{#each editorConfig.customscripts}}
|
{{#each editorConfig.customscripts}}
|
||||||
<script src="custom/{{this}}"></script>
|
<script src="{{this}}"></script>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue