File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -458,8 +458,10 @@ export function initRepoPullRequestReview() {
458
458
459
459
const $reviewBox = $ ( '.review-box' ) ;
460
460
if ( $reviewBox . length === 1 ) {
461
- createCommentEasyMDE ( $reviewBox . find ( 'textarea' ) ) ;
462
- initCompImagePaste ( $reviewBox ) ;
461
+ ( async ( ) => {
462
+ await createCommentEasyMDE ( $reviewBox . find ( 'textarea' ) ) ;
463
+ initCompImagePaste ( $reviewBox ) ;
464
+ } ) ( ) ;
463
465
}
464
466
465
467
// The following part is only for diff views
Original file line number Diff line number Diff line change @@ -64,10 +64,13 @@ export function initRepoCommentForm() {
64
64
} ) ;
65
65
}
66
66
67
- createCommentEasyMDE ( $ ( '.comment.form textarea:not(.review-textarea)' ) ) ;
67
+ ( async ( ) => {
68
+ await createCommentEasyMDE ( $ ( '.comment.form textarea:not(.review-textarea)' ) ) ;
69
+ initCompImagePaste ( $ ( '.comment.form' ) ) ;
70
+ } ) ( ) ;
71
+
68
72
initBranchSelector ( ) ;
69
73
initCompMarkupContentPreviewTab ( $ ( '.comment.form' ) ) ;
70
- initCompImagePaste ( $ ( '.comment.form' ) ) ;
71
74
72
75
// List submits
73
76
function initListSubmits ( selector , outerSelector ) {
You can’t perform that action at this time.
0 commit comments