|
|
@ -141,14 +141,16 @@ BI.ShelterEditor = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_checkText: function () { |
|
|
|
_checkText: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
if (this.editor.getValue() === "") { |
|
|
|
BI.nextTick(BI.bind(function () { |
|
|
|
this.text.setValue(o.watermark || ""); |
|
|
|
if (this.editor.getValue() === "") { |
|
|
|
this.text.element.addClass("bi-water-mark"); |
|
|
|
this.text.setValue(o.watermark || ""); |
|
|
|
} else { |
|
|
|
this.text.element.addClass("bi-water-mark"); |
|
|
|
this.text.setValue(this.editor.getValue()); |
|
|
|
} else { |
|
|
|
this.text.element.removeClass("bi-water-mark"); |
|
|
|
this.text.setValue(this.editor.getValue()); |
|
|
|
} |
|
|
|
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 () { |
|
|
|