mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 20:59:31 +01:00
In SimpleMDE check if trigger exists before call (#9545)
This commit is contained in:
parent
d59536c222
commit
c2d854cfd2
1 changed files with 3 additions and 1 deletions
|
@ -1490,7 +1490,9 @@ function setCommentSimpleMDE($editArea) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Backspace: (cm) => {
|
Backspace: (cm) => {
|
||||||
|
if (cm.getInputField().trigger) {
|
||||||
cm.getInputField().trigger('input');
|
cm.getInputField().trigger('input');
|
||||||
|
}
|
||||||
cm.execCommand('delCharBefore');
|
cm.execCommand('delCharBefore');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue