From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Thu, 2 Jan 2020 03:02:11 +0000 (-0600) Subject: Don't auto-init SimpleMDE for review textarea (#9574) X-Git-Tag: v1.11.0-rc1~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b2b10858c631dea6b7ac457f8e71c61b27bf4934;p=gitea.git Don't auto-init SimpleMDE for review textarea (#9574) Signed-off-by: jolheiser Co-authored-by: Lauris BH --- diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 9f3b271e24..9b0738b1b7 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -213,7 +213,7 @@ {{$.i18n.Tr "preview"}}
- +
{{$.i18n.Tr "loading"}} diff --git a/web_src/js/index.js b/web_src/js/index.js index f4f08b828c..3751c6d9e4 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -325,7 +325,7 @@ function initCommentForm() { return; } - setCommentSimpleMDE($('.comment.form textarea')); + setCommentSimpleMDE($('.comment.form textarea:not(.review-textarea)')); initBranchSelector(); initCommentPreviewTab($('.comment.form')); initImagePaste($('.comment.form textarea'));