diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2020-01-01 21:02:11 -0600 |
---|---|---|
committer | Antoine GIRARD <sapk@users.noreply.github.com> | 2020-01-02 04:02:11 +0100 |
commit | b2b10858c631dea6b7ac457f8e71c61b27bf4934 (patch) | |
tree | 5179cea0cd39db9752b342096ff6ef39dd6400b5 | |
parent | 9cf7048a6a9bed8be9e02a3e0c1ae3336614cdc3 (diff) | |
download | gitea-b2b10858c631dea6b7ac457f8e71c61b27bf4934.tar.gz gitea-b2b10858c631dea6b7ac457f8e71c61b27bf4934.zip |
Don't auto-init SimpleMDE for review textarea (#9574)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
-rw-r--r-- | templates/repo/diff/box.tmpl | 2 | ||||
-rw-r--r-- | web_src/js/index.js | 2 |
2 files changed, 2 insertions, 2 deletions
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 @@ <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 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')); |