Browse Source

无JIRA任务 sheltereditor checkText和signEditor一致

es6
windy 3 years ago
parent
commit
a763bcf824
  1. 18
      src/case/editor/editor.shelter.js

18
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 () {

Loading…
Cancel
Save