diff --git a/js/main.js b/js/main.js index 250a0b31..21740c59 100644 --- a/js/main.js +++ b/js/main.js @@ -2377,6 +2377,7 @@ Utils.prototype.getTextArea = function () { }; Utils.prototype.insertText = function (textarea, text) { + textarea.focus(); textarea.selectionStart = 0; textarea.selectionEnd = textarea.value.length; document.execCommand("insertText", false, text);