fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
660 B

7 years ago
Demo.RichEditor = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-rich-editor"
},
render: function () {
7 years ago
this.editor = BI.createWidget({
7 years ago
type: "bi.rich_editor",
cls: "mvc-border",
width: 600,
height: 400
});
BI.createWidget({
type: "bi.vertical",
element: this,
hgap: 30,
vgap: 50,
7 years ago
items: [this.editor]
7 years ago
});
7 years ago
},
7 years ago
mounted: function () {
this.editor.setValue("这是一条<font size=\"4\" color=\"#009de3\">测试</font>数据");
7 years ago
}
});
BI.shortcut("demo.rich_editor", Demo.RichEditor);