|
|
@ -87,7 +87,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { |
|
|
|
if (!this.watermark) { |
|
|
|
if (!this.watermark) { |
|
|
|
this.watermark = BI.createWidget({ |
|
|
|
this.watermark = BI.createWidget({ |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
cls: "bi-water-mark cursor-default textarea-watermark", |
|
|
|
cls: "bi-water-mark cursor-text textarea-watermark", |
|
|
|
textAlign: "left", |
|
|
|
textAlign: "left", |
|
|
|
whiteSpace: "normal", |
|
|
|
whiteSpace: "normal", |
|
|
|
text: o.watermark, |
|
|
|
text: o.watermark, |
|
|
@ -99,9 +99,9 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { |
|
|
|
this.watermark.element.bind({ |
|
|
|
this.watermark.element.bind({ |
|
|
|
mousedown: function (e) { |
|
|
|
mousedown: function (e) { |
|
|
|
if (self.isEnabled()) { |
|
|
|
if (self.isEnabled()) { |
|
|
|
self.editor.focus(); |
|
|
|
self.focus(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
self.editor.blur(); |
|
|
|
self.blur(); |
|
|
|
} |
|
|
|
} |
|
|
|
e.stopEvent(); |
|
|
|
e.stopEvent(); |
|
|
|
} |
|
|
|
} |
|
|
|