Browse Source

In SimpleMDE check if trigger exists before call (#9545)

for-closed-social
zeripath 4 years ago
committed by GitHub
parent
commit
c2d854cfd2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      web_src/js/index.js

+ 3
- 1
web_src/js/index.js View File

@ -1490,7 +1490,9 @@ function setCommentSimpleMDE($editArea) {
}
},
Backspace: (cm) => {
cm.getInputField().trigger('input');
if (cm.getInputField().trigger) {
cm.getInputField().trigger('input');
}
cm.execCommand('delCharBefore');
}
});

Loading…
Cancel
Save