Allow external custom scripts for Mosaico

This commit is contained in:
witzig 2017-03-10 15:44:23 +01:00
parent 1ea399cbe9
commit 94897b18fd
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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}}