mirror of
https://gitee.com/gitea/gitea.git
synced 2024-12-02 11:47:49 +08:00
In SimpleMDE check if trigger exists before call (#9545)
This commit is contained in:
parent
d59536c222
commit
c2d854cfd2
@ -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…
Reference in New Issue
Block a user