fay 6 years ago
parent
commit
ef80941872
  1. 5
      src/case/richeditor/bar/texttoolbar.js
  2. 8
      src/case/richeditor/niceditor/niceditor.js
  3. 4
      src/case/richeditor/richeditor.js

5
src/case/richeditor/bar/texttoolbar.js

@ -34,11 +34,6 @@ BI.RichEditorTextToolbar = BI.inherit(BI.Widget, {
editor: o.editor
});
}));
this.element.mousedown(function (e) {
BI.each(buttons, function (i, btn) {
btn.hideIf(e);
});
});
BI.createWidget({
type: "bi.left",
element: this,

8
src/case/richeditor/niceditor/niceditor.js

@ -91,6 +91,10 @@
return this.instance.getContent();
},
getContentHeight: function () {
return this.instance.getContentHeight();
},
getInstance: function () {
return this.instance;
},
@ -300,6 +304,10 @@
return this.content;
},
getContentHeight: function () {
return this.elm.element.height();
},
setContent: function (e) {
this.content = e;
this.ne.fireEvent("set");

4
src/case/richeditor/richeditor.js

@ -99,6 +99,10 @@ BI.RichEditor = BI.inherit(BI.Widget, {
getValue: function () {
return this.editor.getValue();
},
getContentHeight: function () {
return this.editor.getContentHeight();
}
});
BI.RichEditor.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";

Loading…
Cancel
Save