From 0f07ba2a47c3f07889ef74dd95da150cadba56e6 Mon Sep 17 00:00:00 2001 From: DiscuzX <153619335@qq.com> Date: Sun, 17 Oct 2021 16:22:46 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BF=AB=E9=80=9F=E5=8F=91?= =?UTF-8?q?=E5=B8=96=E5=9B=9E=E5=B8=96=E6=97=A0=E6=B3=95=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=95=B0=E6=8D=AE=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/static/js/forum.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/static/js/forum.js b/upload/static/js/forum.js index 6579bb36c..9f969a643 100644 --- a/upload/static/js/forum.js +++ b/upload/static/js/forum.js @@ -9,7 +9,7 @@ function saveData(ignoreempty) { var ignoreempty = isUndefined(ignoreempty) ? 0 : ignoreempty; var obj = $('postform') && (($('fwin_newthread') && $('fwin_newthread').style.display == '') || ($('fwin_reply') && $('fwin_reply').style.display == '')) ? $('postform') : ($('fastpostform') ? $('fastpostform') : $('postform')); if(!obj) return; - var bbcode = (typeof wysiwyg != 'undefined' && wysiwyg == 1) ? html2bbcode(editdoc.body.innerHTML) : $('postform').message.value; + var bbcode = (typeof wysiwyg != 'undefined' && wysiwyg == 1) ? html2bbcode(editdoc.body.innerHTML) : obj.message.value; if(typeof isfirstpost != 'undefined') { if(typeof wysiwyg != 'undefined' && wysiwyg == 1) { var messageisnull = trim(bbcode) === ''; -- Gitee