From aed44c2997e65eed180a84aac9926b393e0cba87 Mon Sep 17 00:00:00 2001 From: DiscuzX <153619335@qq.com> Date: Tue, 20 Dec 2022 06:55:17 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A7=AF=E5=88=86=E5=85=AC?= =?UTF-8?q?=E5=BC=8F=E6=8B=AC=E5=8F=B7=E7=82=B9=E5=87=BB=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=8F=92=E5=85=A5=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: DiscuzX <153619335@qq.com> --- upload/static/js/admincp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/static/js/admincp.js b/upload/static/js/admincp.js index 3490ec445..b575cfc73 100644 --- a/upload/static/js/admincp.js +++ b/upload/static/js/admincp.js @@ -142,7 +142,7 @@ function insertunit(obj, text, textend) { if(!isUndefined(obj.selectionStart)) { var opn = obj.selectionStart + 0; if(textend != '') { - text = text + obj.substring(obj.selectionStart, obj.selectionEnd) + textend; + text = text + obj.value.substring(obj.selectionStart, obj.selectionEnd) + textend; } obj.value = obj.value.substr(0, obj.selectionStart) + text + obj.value.substr(obj.selectionEnd); obj.selectionStart = opn + strlen(text); -- Gitee