aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/setting.go
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-11-14 04:57:34 +0100
committerGitHub <noreply@github.com>2020-11-13 22:57:34 -0500
commit374ff60465ace2471d0dde121c6a3e1527ab0bec (patch)
tree76070c023124891a4ee08da8b5db01e13bf90d65 /routers/repo/setting.go
parenta2efcb6acc85dbd231c402a4c308e76289d06cbd (diff)
downloadgitea-374ff60465ace2471d0dde121c6a3e1527ab0bec.tar.gz
gitea-374ff60465ace2471d0dde121c6a3e1527ab0bec.zip
Use monaco for the git hook editor (#13552)
Migrate git hook editor to monaco, replacing CodeMirror. Had to do a few refactors to make the monaco instantiation generic enough to be of use. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers/repo/setting.go')
-rw-r--r--routers/repo/setting.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index e4f8adc38f..368879234b 100644
--- a/routers/repo/setting.go
+++ b/routers/repo/setting.go
@@ -787,7 +787,6 @@ func GitHooks(ctx *context.Context) {
func GitHooksEdit(ctx *context.Context) {
ctx.Data["Title"] = ctx.Tr("repo.settings.githooks")
ctx.Data["PageIsSettingsGitHooks"] = true
- ctx.Data["RequireSimpleMDE"] = true
name := ctx.Params(":name")
hook, err := ctx.Repo.GitRepo.GetHook(name)