diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2022-01-05 20:17:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 13:17:25 +0100 |
commit | a38ba634a4da15fbb2d1b6ac6742cf01c1503ea4 (patch) | |
tree | 9bf892ae0e481e2d3b36b1eaf9a5273152c3c628 /templates/base/footer.tmpl | |
parent | 0572c78938d3d8287f81f53effc7ffaacd75d3e7 (diff) | |
download | gitea-a38ba634a4da15fbb2d1b6ac6742cf01c1503ea4.tar.gz gitea-a38ba634a4da15fbb2d1b6ac6742cf01c1503ea4.zip |
Load EasyMDE/CodeMirror dynamically, remove RequireEasyMDE (#18069)
This PR makes frontend load EasyMDE/CodeMirror dynamically, and removes `RequireEasyMDE`.
Diffstat (limited to 'templates/base/footer.tmpl')
-rw-r--r-- | templates/base/footer.tmpl | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index 2b641cc9de..122b3b46b4 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -12,14 +12,6 @@ {{template "custom/body_outer_post" .}} {{template "base/footer_content" .}} -{{if .RequireEasyMDE}} - <script src="{{AssetUrlPrefix}}/js/easymde.js?v={{MD5 AppVer}}"></script> - <script src="{{AssetUrlPrefix}}/vendor/plugins/codemirror/addon/mode/loadmode.js"></script> - <script src="{{AssetUrlPrefix}}/vendor/plugins/codemirror/mode/meta.js"></script> - <script> - CodeMirror.modeURL = '{{AssetUrlPrefix}}/vendor/plugins/codemirror/mode/%N/%N.js'; - </script> -{{end}} <!-- Third-party libraries --> {{if .RequireU2F}} |