|
|
@ -16,7 +16,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
render: function() { |
|
|
|
render: function () { |
|
|
|
var o = this.options, self = this; |
|
|
|
var o = this.options, self = this; |
|
|
|
this.content = BI.createWidget({ |
|
|
|
this.content = BI.createWidget({ |
|
|
|
type: "bi.layout", |
|
|
|
type: "bi.layout", |
|
|
@ -25,7 +25,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { |
|
|
|
height: "100%", |
|
|
|
height: "100%", |
|
|
|
cls: "bi-textarea textarea-editor-content display-block" |
|
|
|
cls: "bi-textarea textarea-editor-content display-block" |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.content.element.css({resize: "none"}); |
|
|
|
this.content.element.css({ resize: "none" }); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.absolute", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
@ -175,6 +175,11 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { |
|
|
|
return this.style; |
|
|
|
return this.style; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setWatermark: function (v) { |
|
|
|
|
|
|
|
this.options.watermark = v; |
|
|
|
|
|
|
|
this._checkWaterMark(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_setValid: function (b) { |
|
|
|
_setValid: function (b) { |
|
|
|
BI.TextAreaEditor.superclass._setValid.apply(this, arguments); |
|
|
|
BI.TextAreaEditor.superclass._setValid.apply(this, arguments); |
|
|
|
// this.content.setValid(b);
|
|
|
|
// this.content.setValid(b);
|
|
|
|