Browse Source

Pull request #2304: 无JIRA任务 sheltereditor checkText和signEditor一致

Merge in VISUAL/fineui from ~WINDY/fui:master to master

* commit 'a763bcf824faf4a6747fdc5d972e9eafd55b38a8':
  无JIRA任务 sheltereditor checkText和signEditor一致
es6
windy 3 years ago
parent
commit
69340ddaec
  1. 2
      src/case/editor/editor.shelter.js

2
src/case/editor/editor.shelter.js

@ -141,6 +141,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
_checkText: function () { _checkText: function () {
var o = this.options; var o = this.options;
BI.nextTick(BI.bind(function () {
if (this.editor.getValue() === "") { if (this.editor.getValue() === "") {
this.text.setValue(o.watermark || ""); this.text.setValue(o.watermark || "");
this.text.element.addClass("bi-water-mark"); this.text.element.addClass("bi-water-mark");
@ -149,6 +150,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
this.text.element.removeClass("bi-water-mark"); this.text.element.removeClass("bi-water-mark");
} }
BI.isKey(o.keyword) && this.text.doRedMark(o.keyword); BI.isKey(o.keyword) && this.text.doRedMark(o.keyword);
}, this));
}, },
_showInput: function () { _showInput: function () {

Loading…
Cancel
Save