From 7aaefa7dfc900079168c168adcee85ca6bd2a08f Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 28 May 2019 16:17:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E5=AF=B9?= =?UTF-8?q?=E4=BA=8EerrorText=E6=98=AFfunction=EF=BC=8C=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E5=80=BC=E6=98=AF=E7=A9=BA=E6=A0=BC=E7=9A=84=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/editor/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/single/editor/editor.js b/src/base/single/editor/editor.js index 389e150f2..9da071dc7 100644 --- a/src/base/single/editor/editor.js +++ b/src/base/single/editor/editor.js @@ -240,7 +240,7 @@ BI.Editor = BI.inherit(BI.Single, { var o = this.options; var errorText = o.errorText; if (BI.isFunction(errorText)) { - errorText = errorText(this.editor.getValue()); + errorText = errorText(BI.trim(this.editor.getValue())); } if (!this.disabledError && BI.isKey(errorText)) { BI.Bubbles[b ? "show" : "hide"](this.getName(), errorText, this, {