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]
|
||||
# Installed templates
|
||||
templates=[["versafix-1", "Versafix One"]]
|
||||
# Inject custom scripts from public/mosaico/custom/
|
||||
# customscripts=["some-lib.js", "my-mosaico-plugin.js"]
|
||||
# Inject custom scripts
|
||||
# customscripts=["/mosaico/custom/my-mosaico-plugin.js"]
|
||||
|
||||
[grapejs]
|
||||
# Installed templates
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
{{#if editorConfig.customscripts}}
|
||||
{{#each editorConfig.customscripts}}
|
||||
<script src="custom/{{this}}"></script>
|
||||
<script src="{{this}}"></script>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue