diff --git a/dist/bundle.js b/dist/bundle.js index 4e612b20f..364628397 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -84331,6 +84331,7 @@ BI.RichEditorBackgroundColorChooser = BI.inherit(BI.RichEditorAction, { var self = this, o = this.options; this.colorchooser = BI.createWidget({ type: "bi.color_chooser", + container: null, element: this, width: o.width, height: o.height, @@ -84377,6 +84378,7 @@ BI.RichEditorColorChooser = BI.inherit(BI.RichEditorAction, { var self = this, o = this.options; this.colorchooser = BI.createWidget({ type: "bi.color_chooser", + container: null, element: this, width: o.width, height: o.height, @@ -84716,7 +84718,10 @@ BI.RichEditor = BI.inherit(BI.Widget, { popup: { el: BI.extend({ type: "bi.rich_editor_text_toolbar", - editor: this.editor + editor: this.editor, + ref: function (_ref) { + self.toolbar = _ref; + } }, o.toolbar), height: 34, stopPropagation: true, @@ -84736,6 +84741,9 @@ BI.RichEditor = BI.inherit(BI.Widget, { if(BI.isNull(o.value)) { this.editor.setValue(o.value); } + if(o.toolbar) { + this.editor.bindToolbar(this.toolbar); + } }, focus: function () { diff --git a/dist/case.js b/dist/case.js index 688dcf2df..e1947cf2e 100644 --- a/dist/case.js +++ b/dist/case.js @@ -11648,6 +11648,7 @@ BI.RichEditorBackgroundColorChooser = BI.inherit(BI.RichEditorAction, { var self = this, o = this.options; this.colorchooser = BI.createWidget({ type: "bi.color_chooser", + container: null, element: this, width: o.width, height: o.height, @@ -11694,6 +11695,7 @@ BI.RichEditorColorChooser = BI.inherit(BI.RichEditorAction, { var self = this, o = this.options; this.colorchooser = BI.createWidget({ type: "bi.color_chooser", + container: null, element: this, width: o.width, height: o.height, @@ -12033,7 +12035,10 @@ BI.RichEditor = BI.inherit(BI.Widget, { popup: { el: BI.extend({ type: "bi.rich_editor_text_toolbar", - editor: this.editor + editor: this.editor, + ref: function (_ref) { + self.toolbar = _ref; + } }, o.toolbar), height: 34, stopPropagation: true, @@ -12053,6 +12058,9 @@ BI.RichEditor = BI.inherit(BI.Widget, { if(BI.isNull(o.value)) { this.editor.setValue(o.value); } + if(o.toolbar) { + this.editor.bindToolbar(this.toolbar); + } }, focus: function () { diff --git a/dist/fineui.js b/dist/fineui.js index b15ad98b1..b67886e44 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -84580,6 +84580,7 @@ BI.RichEditorBackgroundColorChooser = BI.inherit(BI.RichEditorAction, { var self = this, o = this.options; this.colorchooser = BI.createWidget({ type: "bi.color_chooser", + container: null, element: this, width: o.width, height: o.height, @@ -84626,6 +84627,7 @@ BI.RichEditorColorChooser = BI.inherit(BI.RichEditorAction, { var self = this, o = this.options; this.colorchooser = BI.createWidget({ type: "bi.color_chooser", + container: null, element: this, width: o.width, height: o.height, @@ -84965,7 +84967,10 @@ BI.RichEditor = BI.inherit(BI.Widget, { popup: { el: BI.extend({ type: "bi.rich_editor_text_toolbar", - editor: this.editor + editor: this.editor, + ref: function (_ref) { + self.toolbar = _ref; + } }, o.toolbar), height: 34, stopPropagation: true, @@ -84985,6 +84990,9 @@ BI.RichEditor = BI.inherit(BI.Widget, { if(BI.isNull(o.value)) { this.editor.setValue(o.value); } + if(o.toolbar) { + this.editor.bindToolbar(this.toolbar); + } }, focus: function () { diff --git a/src/case/richeditor/plugins/combo.backgroundcolorchooser.js b/src/case/richeditor/plugins/combo.backgroundcolorchooser.js index b089bd75c..6a4607b89 100644 --- a/src/case/richeditor/plugins/combo.backgroundcolorchooser.js +++ b/src/case/richeditor/plugins/combo.backgroundcolorchooser.js @@ -18,6 +18,7 @@ BI.RichEditorBackgroundColorChooser = BI.inherit(BI.RichEditorAction, { var self = this, o = this.options; this.colorchooser = BI.createWidget({ type: "bi.color_chooser", + container: null, element: this, width: o.width, height: o.height, diff --git a/src/case/richeditor/plugins/combo.colorchooser.js b/src/case/richeditor/plugins/combo.colorchooser.js index e7ca5409b..9477e6e0d 100644 --- a/src/case/richeditor/plugins/combo.colorchooser.js +++ b/src/case/richeditor/plugins/combo.colorchooser.js @@ -20,6 +20,7 @@ BI.RichEditorColorChooser = BI.inherit(BI.RichEditorAction, { var self = this, o = this.options; this.colorchooser = BI.createWidget({ type: "bi.color_chooser", + container: null, element: this, width: o.width, height: o.height, diff --git a/src/case/richeditor/richeditor.js b/src/case/richeditor/richeditor.js index e0963f230..b46fb1b27 100644 --- a/src/case/richeditor/richeditor.js +++ b/src/case/richeditor/richeditor.js @@ -68,7 +68,10 @@ BI.RichEditor = BI.inherit(BI.Widget, { popup: { el: BI.extend({ type: "bi.rich_editor_text_toolbar", - editor: this.editor + editor: this.editor, + ref: function (_ref) { + self.toolbar = _ref; + } }, o.toolbar), height: 34, stopPropagation: true, @@ -88,6 +91,9 @@ BI.RichEditor = BI.inherit(BI.Widget, { if(BI.isNull(o.value)) { this.editor.setValue(o.value); } + if(o.toolbar) { + this.editor.bindToolbar(this.toolbar); + } }, focus: function () {