Browse Source

rich_editor修改

es6
windy 7 years ago
parent
commit
f218d22316
  1. 2
      demo/js/base/editor/demo.rich_editor.js
  2. 4
      dist/bundle.js
  3. 4
      dist/case.js
  4. 2
      dist/demo.js
  5. 1
      src/case/richeditor/niceditor/niceditor.js
  6. 1
      src/case/richeditor/plugins/combo.backgroundcolorchooser.js
  7. 2
      src/case/richeditor/richeditor.js

2
demo/js/base/editor/demo.rich_editor.js

@ -6,7 +6,7 @@ Demo.RichEditor = BI.inherit(BI.Widget, {
var self = this; var self = this;
this.editor = BI.createWidget({ this.editor = BI.createWidget({
type: "bi.rich_editor", type: "bi.rich_editor",
cls: "mvc-border", cls: "bi-border",
width: 600, width: 600,
height: 400 height: 400
}); });

4
dist/bundle.js vendored

@ -82291,7 +82291,6 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/**
scrollable: false scrollable: false
}); });
this.elm.element.css({ this.elm.element.css({
margin: "4px",
minHeight: (o.height - 8) + "px", minHeight: (o.height - 8) + "px",
outline: "none" outline: "none"
}).html(o.value); }).html(o.value);
@ -82886,7 +82885,6 @@ BI.RichEditorBackgroundColorChooser = BI.inherit(BI.RichEditorAction, {
backgroundColor: backgroundColor, backgroundColor: backgroundColor,
color: BI.DOM.getContrastColor(backgroundColor) color: BI.DOM.getContrastColor(backgroundColor)
}); });
this.setValue("");
}); });
}, },
@ -83074,7 +83072,7 @@ BI.RichEditor = BI.inherit(BI.Widget, {
element: this, element: this,
toggle: false, toggle: false,
trigger: o.readOnly ? "" : "click", trigger: o.readOnly ? "" : "click",
direction: "top,left", direction: "top,right",
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
isNeedAdjustHeight: false, isNeedAdjustHeight: false,
adjustLength: 1, adjustLength: 1,

4
dist/case.js vendored

@ -10360,7 +10360,6 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/**
scrollable: false scrollable: false
}); });
this.elm.element.css({ this.elm.element.css({
margin: "4px",
minHeight: (o.height - 8) + "px", minHeight: (o.height - 8) + "px",
outline: "none" outline: "none"
}).html(o.value); }).html(o.value);
@ -10955,7 +10954,6 @@ BI.RichEditorBackgroundColorChooser = BI.inherit(BI.RichEditorAction, {
backgroundColor: backgroundColor, backgroundColor: backgroundColor,
color: BI.DOM.getContrastColor(backgroundColor) color: BI.DOM.getContrastColor(backgroundColor)
}); });
this.setValue("");
}); });
}, },
@ -11143,7 +11141,7 @@ BI.RichEditor = BI.inherit(BI.Widget, {
element: this, element: this,
toggle: false, toggle: false,
trigger: o.readOnly ? "" : "click", trigger: o.readOnly ? "" : "click",
direction: "top,left", direction: "top,right",
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
isNeedAdjustHeight: false, isNeedAdjustHeight: false,
adjustLength: 1, adjustLength: 1,

2
dist/demo.js vendored

@ -859,7 +859,7 @@ BI.shortcut("demo.multifile_editor", Demo.CodeEditor);Demo.RichEditor = BI.inher
var self = this; var self = this;
this.editor = BI.createWidget({ this.editor = BI.createWidget({
type: "bi.rich_editor", type: "bi.rich_editor",
cls: "mvc-border", cls: "bi-border",
width: 600, width: 600,
height: 400 height: 400
}); });

1
src/case/richeditor/niceditor/niceditor.js

@ -101,7 +101,6 @@
scrollable: false scrollable: false
}); });
this.elm.element.css({ this.elm.element.css({
margin: "4px",
minHeight: (o.height - 8) + "px", minHeight: (o.height - 8) + "px",
outline: "none" outline: "none"
}).html(o.value); }).html(o.value);

1
src/case/richeditor/plugins/combo.backgroundcolorchooser.js

@ -33,7 +33,6 @@ BI.RichEditorBackgroundColorChooser = BI.inherit(BI.RichEditorAction, {
backgroundColor: backgroundColor, backgroundColor: backgroundColor,
color: BI.DOM.getContrastColor(backgroundColor) color: BI.DOM.getContrastColor(backgroundColor)
}); });
this.setValue("");
}); });
}, },

2
src/case/richeditor/richeditor.js

@ -41,7 +41,7 @@ BI.RichEditor = BI.inherit(BI.Widget, {
element: this, element: this,
toggle: false, toggle: false,
trigger: o.readOnly ? "" : "click", trigger: o.readOnly ? "" : "click",
direction: "top,left", direction: "top,right",
isNeedAdjustWidth: false, isNeedAdjustWidth: false,
isNeedAdjustHeight: false, isNeedAdjustHeight: false,
adjustLength: 1, adjustLength: 1,

Loading…
Cancel
Save