|
|
|
@ -83292,7 +83292,8 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/**
|
|
|
|
|
}); |
|
|
|
|
this.elm.element.css({ |
|
|
|
|
minHeight: BI.isNumber(o.height) ? (o.height - 8) + "px" : o.height, |
|
|
|
|
outline: "none" |
|
|
|
|
outline: "none", |
|
|
|
|
padding: "0 10px" |
|
|
|
|
}).html(o.value); |
|
|
|
|
|
|
|
|
|
if(o.readOnly) { |
|
|
|
@ -83326,12 +83327,21 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/**
|
|
|
|
|
// this.setContent("<br />");
|
|
|
|
|
} |
|
|
|
|
this.instanceDoc = document.defaultView; |
|
|
|
|
this.elm.element.on("mousedown", BI.bind(this.selected, this)); |
|
|
|
|
this.elm.element.on("mousedown", BI.bind(function (e) { |
|
|
|
|
console.log(1); |
|
|
|
|
this.selected(e); |
|
|
|
|
}, this)); |
|
|
|
|
this.elm.element.on("keyup", BI.bind(this.keyDown, this)); |
|
|
|
|
// this.elm.element.on("keydown", BI.bind(this.keyDown, this));
|
|
|
|
|
this.elm.element.on("focus", BI.bind(this.selected, this)); |
|
|
|
|
this.elm.element.on("focus", BI.bind(function (e) { |
|
|
|
|
console.log(2); |
|
|
|
|
this.selected(e); |
|
|
|
|
}, this)); |
|
|
|
|
this.elm.element.on("blur", BI.bind(this.blur, this)); |
|
|
|
|
this.elm.element.on("keyup", BI.bind(this.selected, this)); |
|
|
|
|
this.elm.element.on("keyup", BI.bind(function (e) { |
|
|
|
|
console.log(3); |
|
|
|
|
this.selected(e); |
|
|
|
|
}, this)); |
|
|
|
|
this.ne.fireEvent("add"); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|