Skip to content

Commit

Permalink
Initialize SimpleMDE textarea.
Browse files Browse the repository at this point in the history
  • Loading branch information
KN4CK3R committed Jun 11, 2021
1 parent cfcd5ec commit 001066f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web_src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,13 @@ function initPullRequestReview() {
$simplemde.codemirror.focus();
assingMenuAttributes(form.find('.menu'));
});

const $reviewBox = $('.review-box');
if ($reviewBox.length === 1) {
setCommentSimpleMDE($reviewBox.find('textarea'));
initImagePaste($reviewBox);
}

// The following part is only for diff views
if ($('.repository.pull.diff').length === 0) {
return;
Expand Down

0 comments on commit 001066f

Please sign in to comment.