Skip to content

Commit 001066f

Browse files
committed
Initialize SimpleMDE textarea.
1 parent cfcd5ec commit 001066f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

web_src/js/index.js

+7
Original file line numberDiff line numberDiff line change
@@ -1379,6 +1379,13 @@ function initPullRequestReview() {
13791379
$simplemde.codemirror.focus();
13801380
assingMenuAttributes(form.find('.menu'));
13811381
});
1382+
1383+
const $reviewBox = $('.review-box');
1384+
if ($reviewBox.length === 1) {
1385+
setCommentSimpleMDE($reviewBox.find('textarea'));
1386+
initImagePaste($reviewBox);
1387+
}
1388+
13821389
// The following part is only for diff views
13831390
if ($('.repository.pull.diff').length === 0) {
13841391
return;

0 commit comments

Comments
 (0)