guy 7 years ago
parent
commit
1e4b85ec26
  1. 1103
      bi/base.js
  2. 1134
      bi/case.js
  3. 1103
      dist/base.js
  4. 18833
      dist/bundle.js
  5. 58
      dist/bundle.min.js
  6. 1134
      dist/case.js
  7. 8
      src/case/colorchooser/colorchooser.js
  8. 4
      src/case/richeditor/bar/action.richeditor.js
  9. 0
      src/case/richeditor/bar/action.richeditor.param.js
  10. 17
      src/case/richeditor/bar/texttoolbar.js
  11. 0
      src/case/richeditor/niceditor/niceditor.js
  12. 0
      src/case/richeditor/plugins/backgroundchooser/trigger.backgroundchooser.js
  13. 0
      src/case/richeditor/plugins/button.align.center.js
  14. 0
      src/case/richeditor/plugins/button.align.left.js
  15. 0
      src/case/richeditor/plugins/button.align.right.js
  16. 0
      src/case/richeditor/plugins/button.bold.js
  17. 0
      src/case/richeditor/plugins/button.italic.js
  18. 0
      src/case/richeditor/plugins/button.param.js
  19. 0
      src/case/richeditor/plugins/button.underline.js
  20. 0
      src/case/richeditor/plugins/colorchooser/trigger.colorchooser.js
  21. 4
      src/case/richeditor/plugins/combo.backgroundcolorchooser.js
  22. 4
      src/case/richeditor/plugins/combo.colorchooser.js
  23. 4
      src/case/richeditor/plugins/combo.sizechooser.js
  24. 0
      src/case/richeditor/richeditor.js

1103
bi/base.js

File diff suppressed because it is too large Load Diff

1134
bi/case.js

File diff suppressed because it is too large Load Diff

1103
dist/base.js vendored

File diff suppressed because it is too large Load Diff

18833
dist/bundle.js vendored

File diff suppressed because it is too large Load Diff

58
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

1134
dist/case.js vendored

File diff suppressed because it is too large Load Diff

8
src/case/colorchooser/colorchooser.js

@ -70,6 +70,14 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
return this.combo.isViewVisible();
},
hideView: function () {
this.combo.hideView();
},
showView: function () {
this.combo.showView();
},
setValue: function (color) {
this.combo.setValue(color);
},

4
src/base/richeditor/bar/action.richeditor.js → src/case/richeditor/bar/action.richeditor.js

@ -54,6 +54,10 @@ BI.RichEditorAction = BI.inherit(BI.Widget, {
return false;
},
start: function () {
},
key: function () {
},

0
src/base/richeditor/bar/action.richeditor.param.js → src/case/richeditor/bar/action.richeditor.param.js

17
src/base/richeditor/bar/texttoolbar.js → src/case/richeditor/bar/texttoolbar.js

@ -28,14 +28,21 @@ BI.RichEditorTextToolbar = BI.inherit(BI.Widget, {
_init: function () {
BI.RichEditorTextToolbar.superclass._init.apply(this, arguments);
var self = this, o = this.options;
var operators = [];
BI.each(o.buttons, function (i, btn) {
operators.push(BI.createWidget(BI.extend(btn, {
editor: o.editor
})));
});
this.element.on("mousedown", function () {
BI.each(operators, function (i, op) {
op.start();
});
});
BI.createWidget({
type: "bi.left",
element: this,
items: BI.map(o.buttons, function (i, btn) {
return BI.extend(btn, {
editor: o.editor
});
}),
items: operators,
hgap: 3,
vgap: 3
})

0
src/base/richeditor/niceditor/niceditor.js → src/case/richeditor/niceditor/niceditor.js

0
src/base/richeditor/plugins/backgroundchooser/trigger.backgroundchooser.js → src/case/richeditor/plugins/backgroundchooser/trigger.backgroundchooser.js

0
src/base/richeditor/plugins/button.align.center.js → src/case/richeditor/plugins/button.align.center.js

0
src/base/richeditor/plugins/button.align.left.js → src/case/richeditor/plugins/button.align.left.js

0
src/base/richeditor/plugins/button.align.right.js → src/case/richeditor/plugins/button.align.right.js

0
src/base/richeditor/plugins/button.bold.js → src/case/richeditor/plugins/button.bold.js

0
src/base/richeditor/plugins/button.italic.js → src/case/richeditor/plugins/button.italic.js

0
src/base/richeditor/plugins/button.param.js → src/case/richeditor/plugins/button.param.js

0
src/base/richeditor/plugins/button.underline.js → src/case/richeditor/plugins/button.underline.js

0
src/base/richeditor/plugins/colorchooser/trigger.colorchooser.js → src/case/richeditor/plugins/colorchooser/trigger.colorchooser.js

4
src/base/richeditor/plugins/combo.backgroundcolorchooser.js → src/case/richeditor/plugins/combo.backgroundcolorchooser.js

@ -37,6 +37,10 @@ BI.RichEditorBackgroundColorChooser = BI.inherit(BI.RichEditorAction, {
});
},
start: function () {
this.colorchooser.hideView();
},
deactivate: function () {
}
});

4
src/base/richeditor/plugins/combo.colorchooser.js → src/case/richeditor/plugins/combo.colorchooser.js

@ -34,6 +34,10 @@ BI.RichEditorColorChooser = BI.inherit(BI.RichEditorAction, {
},
start: function () {
this.colorchooser.hideView();
},
deactivate: function () {
this.colorchooser.setValue("");
}

4
src/base/richeditor/plugins/combo.sizechooser.js → src/case/richeditor/plugins/combo.sizechooser.js

@ -71,6 +71,10 @@ BI.RichEditorSizeChooser = BI.inherit(BI.RichEditorAction, {
this.hideView();
this.setValue([]);
})
},
start: function () {
this.combo.hideView();
}
});
BI.shortcut('bi.rich_editor_size_chooser', BI.RichEditorSizeChooser);

0
src/base/richeditor/richeditor.js → src/case/richeditor/richeditor.js

Loading…
Cancel
Save