btns : [
{
xtype : 'Button',
- text : "+Table",
+ text : "Add Table",
cls : 'x-init-enable',
listeners : {
click : function (_self, e)
},
xns : Roo,
+ },
+ {
+ xtype : 'Button',
+ text : "Add Image",
+ cls : 'x-init-enable',
+ listeners : {
+ click : function (_self, e)
+ {
+
+ var rr = new Roo.htmleditor.BlockFigure({
+ image_src: 'https://www.roojs.org/Roojscom/templates/images/roojsorg_logo-100.png',
+
+ align: 'left',
+ caption : 'test',
+ text_align: 'left',
+
+ width : '46%',
+ margin: '2%',
+ });
+ editor.editorcore.insertAtCursor(rr.toHTML());
+
+
+ }
+ },
+ xns : Roo,
+
}
]