From a763bcf824faf4a6747fdc5d972e9eafd55b38a8 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 23 Nov 2021 17:06:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20sheltereditor?= =?UTF-8?q?=20checkText=E5=92=8CsignEditor=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/editor/editor.shelter.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/case/editor/editor.shelter.js b/src/case/editor/editor.shelter.js index 562cbe3a4..d3c76f226 100644 --- a/src/case/editor/editor.shelter.js +++ b/src/case/editor/editor.shelter.js @@ -141,14 +141,16 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { _checkText: function () { var o = this.options; - if (this.editor.getValue() === "") { - this.text.setValue(o.watermark || ""); - this.text.element.addClass("bi-water-mark"); - } else { - this.text.setValue(this.editor.getValue()); - this.text.element.removeClass("bi-water-mark"); - } - BI.isKey(o.keyword) && this.text.doRedMark(o.keyword); + BI.nextTick(BI.bind(function () { + if (this.editor.getValue() === "") { + this.text.setValue(o.watermark || ""); + this.text.element.addClass("bi-water-mark"); + } else { + this.text.setValue(this.editor.getValue()); + this.text.element.removeClass("bi-water-mark"); + } + BI.isKey(o.keyword) && this.text.doRedMark(o.keyword); + }, this)); }, _showInput: function () {