if (!cfg.node) {
this.rows = [];
for(var r = 0; r < this.no_row; r++) {
- this.rows[r] = []
+ this.rows[r] = [];
for(var c = 0; c < this.no_col; c++) {
this.rows[r][c] = this.emptyCell();
}
listeners : {
select : function (combo, r, index)
{
+ toolbar.editorcore.selectNode(toolbar.tb.selectedNode);
var b = block();
b.width = r.get('val');
b.updateElement();
syncValue();
-
+ toolbar.editorcore.onEditorEvent();
}
},
xns : rooui.form,
listeners : {
click : function (_self, e)
{
+ toolbar.editorcore.selectNode(toolbar.tb.selectedNode);
block().removeColumn();
syncValue();
+ toolbar.editorcore.onEditorEvent();
}
},
xns : rooui.Toolbar
listeners : {
click : function (_self, e)
{
+ toolbar.editorcore.selectNode(toolbar.tb.selectedNode);
block().addColumn();
syncValue();
+ toolbar.editorcore.onEditorEvent();
}
},
xns : rooui.Toolbar
listeners : {
click : function (_self, e)
{
+ toolbar.editorcore.selectNode(toolbar.tb.selectedNode);
block().removeRow();
syncValue();
+ toolbar.editorcore.onEditorEvent();
}
},
xns : rooui.Toolbar
{
block().addRow();
syncValue();
+ toolbar.editorcore.onEditorEvent();
}
},
xns : rooui.Toolbar
{
block().resetWidths();
syncValue();
+ toolbar.editorcore.onEditorEvent();
}
},
xns : rooui.Toolbar
style : {
width: this.width,
border : 'solid 1px #000', // ??? hard coded?
- 'border-collapse' : 'collapse',
+ 'border-collapse' : 'collapse'
},
cn : [
{ tag : 'tbody' , cn : [] }
style : {
margin: '6px',
border : 'solid 1px #000',
- textAlign : 'left',
+ textAlign : 'left'
},
cn : [ ]
};
this.no_row = 0;
var trs = Array.from(node.getElementsByTagName('tr'));
trs.forEach(function(tr) {
- var row = []
+ var row = [];
this.rows.push(row);
if (Roo.get(tr).hasClass('roo-html-editor-el')) { // ??? this is for our 'row' selection'
return;
rowspan : td.hasAttribute('rowspan') ? td.getAttribute('rowspan') : 1,
style : td.hasAttribute('style') ? td.getAttribute('style') : '',
html : td.innerHTML
- }
+ };
no_column += add.colspan;