diff --git a/web_src/js/index.js b/web_src/js/index.js index 395a01f05939..f4f08b828c8c 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -1490,7 +1490,9 @@ function setCommentSimpleMDE($editArea) { } }, Backspace: (cm) => { - cm.getInputField().trigger('input'); + if (cm.getInputField().trigger) { + cm.getInputField().trigger('input'); + } cm.execCommand('delCharBefore'); } });