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