summaryrefslogtreecommitdiffstats
path: root/templates/base/head.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base/head.tmpl')
-rw-r--r--templates/base/head.tmpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index 68ea478942..0c19b19cf9 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -24,6 +24,11 @@
{{if .RequireSimpleMDE}}
<link rel="stylesheet" href="{{AppSubUrl}}/plugins/simplemde-1.10.1/simplemde.min.css">
<script src="{{AppSubUrl}}/plugins/simplemde-1.10.1/simplemde.min.js"></script>
+ <script src="{{AppSubUrl}}/plugins/codemirror-5.17.0/addon/mode/loadmode.js"></script>
+ <script src="{{AppSubUrl}}/plugins/codemirror-5.17.0/mode/meta.js"></script>
+ <script>
+ CodeMirror.modeURL = "{{AppSubUrl}}/plugins/codemirror-5.17.0/mode/%N/%N.js";
+ </script>
{{end}}
<!-- Stylesheet -->