Skip to content

Commit b2b1085

Browse files
jolheiserlafriks
authored andcommitted
Don't auto-init SimpleMDE for review textarea (#9574)
Signed-off-by: jolheiser <[email protected]> Co-authored-by: Lauris BH <[email protected]>
1 parent 9cf7048 commit b2b1085

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/repo/diff/box.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
<a class="preview item" data-url="{{$.Repository.APIURL}}/markdown" data-context="{{$.RepoLink}}">{{$.i18n.Tr "preview"}}</a>
214214
</div>
215215
<div class="ui bottom attached active write tab segment">
216-
<textarea tabindex="1" name="content"></textarea>
216+
<textarea class="review-textarea" tabindex="1" name="content"></textarea>
217217
</div>
218218
<div class="ui bottom attached tab preview segment markdown">
219219
{{$.i18n.Tr "loading"}}

web_src/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ function initCommentForm() {
325325
return;
326326
}
327327

328-
setCommentSimpleMDE($('.comment.form textarea'));
328+
setCommentSimpleMDE($('.comment.form textarea:not(.review-textarea)'));
329329
initBranchSelector();
330330
initCommentPreviewTab($('.comment.form'));
331331
initImagePaste($('.comment.form textarea'));

0 commit comments

Comments
 (0)