summaryrefslogtreecommitdiffstats
path: root/routers/web/repo/commit.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-01-05 20:17:25 +0800
committerGitHub <noreply@github.com>2022-01-05 13:17:25 +0100
commita38ba634a4da15fbb2d1b6ac6742cf01c1503ea4 (patch)
tree9bf892ae0e481e2d3b36b1eaf9a5273152c3c628 /routers/web/repo/commit.go
parent0572c78938d3d8287f81f53effc7ffaacd75d3e7 (diff)
downloadgitea-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 'routers/web/repo/commit.go')
-rw-r--r--routers/web/repo/commit.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/routers/web/repo/commit.go b/routers/web/repo/commit.go
index e012bc24d2..304f76158c 100644
--- a/routers/web/repo/commit.go
+++ b/routers/web/repo/commit.go
@@ -254,7 +254,6 @@ func FileHistory(ctx *context.Context) {
func Diff(ctx *context.Context) {
ctx.Data["PageIsDiff"] = true
ctx.Data["RequireHighlightJS"] = true
- ctx.Data["RequireEasyMDE"] = true
ctx.Data["RequireTribute"] = true
userName := ctx.Repo.Owner.Name