|
|
@ -859,15 +859,26 @@ BI.shortcut("demo.multifile_editor", Demo.CodeEditor);Demo.RichEditor = BI.inher |
|
|
|
this.editor = BI.createWidget({ |
|
|
|
this.editor = BI.createWidget({ |
|
|
|
type: "bi.rich_editor", |
|
|
|
type: "bi.rich_editor", |
|
|
|
cls: "mvc-border", |
|
|
|
cls: "mvc-border", |
|
|
|
width: 600, |
|
|
|
width: "100%", |
|
|
|
height: 400 |
|
|
|
height: "100%" |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.vertical", |
|
|
|
type: "bi.vertical", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
hgap: 30, |
|
|
|
hgap: 30, |
|
|
|
vgap: 50, |
|
|
|
vgap: 50, |
|
|
|
items: [this.editor] |
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
width: 600, |
|
|
|
|
|
|
|
height: 400, |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: this.editor, |
|
|
|
|
|
|
|
left: 10, |
|
|
|
|
|
|
|
right: 10, |
|
|
|
|
|
|
|
top: 10, |
|
|
|
|
|
|
|
bottom: 10 |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -877,6 +888,8 @@ BI.shortcut("demo.multifile_editor", Demo.CodeEditor);Demo.RichEditor = BI.inher |
|
|
|
var style = image.style; |
|
|
|
var style = image.style; |
|
|
|
|
|
|
|
|
|
|
|
this.editor.setValue("<div>这是一条<font size=\"4\" color=\"#009de3\">测试</font>数据<img width='" + image.width + "' height='" + image.height + "' src='" + src + "' style='" + style + "' /></div>"); |
|
|
|
this.editor.setValue("<div>这是一条<font size=\"4\" color=\"#009de3\">测试</font>数据<img width='" + image.width + "' height='" + image.height + "' src='" + src + "' style='" + style + "' /></div>"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.editor.focus(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.shortcut("demo.rich_editor", Demo.RichEditor);/** |
|
|
|
BI.shortcut("demo.rich_editor", Demo.RichEditor);/** |
|
|
|