From f83e0ab114c9d4b386d794e098f094b18094a812 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 18 Apr 2018 11:10:11 +0800 Subject: [PATCH] update --- demo/js/base/editor/demo.rich_editor.js | 29 ++++++++------- dist/_fineui.min.js | 18 +++++----- dist/bundle.js | 13 +++++-- dist/bundle.min.js | 36 +++++++++---------- dist/case.js | 13 +++++-- dist/demo.js | 29 ++++++++------- dist/fineui.min.js | 18 +++++----- src/case/colorchooser/colorchooser.js | 1 - .../plugins/combo.backgroundcolorchooser.js | 1 + src/case/richeditor/richeditor.js | 11 +++++- 10 files changed, 97 insertions(+), 72 deletions(-) diff --git a/demo/js/base/editor/demo.rich_editor.js b/demo/js/base/editor/demo.rich_editor.js index 80e0c8b07..e618499ec 100644 --- a/demo/js/base/editor/demo.rich_editor.js +++ b/demo/js/base/editor/demo.rich_editor.js @@ -4,23 +4,21 @@ Demo.RichEditor = BI.inherit(BI.Widget, { }, render: function () { var self = this; - this.editor = BI.createWidget({ - type: "bi.rich_editor", - cls: "bi-border", - width: 600, - height: 400 - }); BI.createWidget({ - type: "bi.vertical", + type: "bi.absolute", element: this, - hgap: 30, - vgap: 50, - items: [this.editor, { - type: "bi.button", - text: "focus", - handler: function () { - self.editor.focus(); - } + items: [{ + el: { + type: "bi.rich_editor", + cls: "bi-border", + ref: function () { + self.editor = this; + } + }, + left: 10, + top: 10, + bottom: 10, + right: 10 }] }); }, @@ -30,6 +28,7 @@ Demo.RichEditor = BI.inherit(BI.Widget, { var src = image.src; var style = image.style; this.editor.setValue("