summaryrefslogtreecommitdiffstats
path: root/routers/repo/issue.go
diff options
context:
space:
mode:
authorBenno <blueworrybear@gmail.com>2019-12-16 23:56:35 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2019-12-16 23:56:35 +0800
commit121977c36fc2af5a2b7b814b164b1357ea623c73 (patch)
tree9c292b5428f86adccf835df9f2d4e0ef32ed8bc4 /routers/repo/issue.go
parent61db8349041cceceb4ad3233e69613705bd0a128 (diff)
downloadgitea-121977c36fc2af5a2b7b814b164b1357ea623c73.tar.gz
gitea-121977c36fc2af5a2b7b814b164b1357ea623c73.zip
Add SimpleMDE and Fix Image Paste for Issue/Comment Editor (#9197)
* update #9132 and #8834 - add SimpleMDE for issue and fix image paste for comment editor * attache tribute to simplemde * update #9197 force simplemde file input event when backspace press
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r--routers/repo/issue.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 07292c1993..ae0c2d3b8f 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -673,6 +673,7 @@ func ViewIssue(ctx *context.Context) {
ctx.Data["RequireHighlightJS"] = true
ctx.Data["RequireDropzone"] = true
ctx.Data["RequireTribute"] = true
+ ctx.Data["RequireSimpleMDE"] = true
renderAttachmentSettings(ctx)
if err = issue.LoadAttributes(); err != nil {