diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 9f3b271e2..9b0738b1b 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -213,7 +213,7 @@ <a class="preview item" data-url="{{$.Repository.APIURL}}/markdown" data-context="{{$.RepoLink}}">{{$.i18n.Tr "preview"}}</a> </div> <div class="ui bottom attached active write tab segment"> - <textarea tabindex="1" name="content"></textarea> + <textarea class="review-textarea" tabindex="1" name="content"></textarea> </div> <div class="ui bottom attached tab preview segment markdown"> {{$.i18n.Tr "loading"}} diff --git a/web_src/js/index.js b/web_src/js/index.js index f4f08b828..3751c6d9e 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'));