X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-debug.js;h=df0c12750f57f1e7b17ad8f2abbc229e080f2568;hb=49916991ed430c7b548876244542ef0428570442;hp=779fa0189fb273d3445447996e2ca630b28e5f7a;hpb=8f5eb4c4c8c1b9d0a7198e29efe26ac2d9e0bff8;p=roojs1 diff --git a/roojs-debug.js b/roojs-debug.js index 779fa0189f..df0c12750f 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -49276,7 +49276,6 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { */ toObject : function() { - var ret = { tag : 'td', contenteditable : 'true', // this stops cell selection from picking the table. @@ -49418,6 +49417,7 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { mergeRight: function() { + console.log("htmleditor.BlockTd mergeRight"); // get the contents of the next cell along.. var tr = this.node.closest('tr'); @@ -49443,6 +49443,9 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { this.colspan += rc.colspan; this.node.setAttribute('colspan', this.colspan); + var table = this.toTableArray(); + this.normalizeWidths(table); + this.updateWidths(table); }, @@ -49535,6 +49538,11 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { }, updateWidths : function(table) { + console.log("htmleditor.BlockTd updateWidths"); + console.log("TABLE"); + console.log(table); + console.log("COLWIDTH"); + console.log(this.colWidths); for(var r = 0 ; r < table.length; r++) { for(var c = 0 ; c < table[r].length; c++) { @@ -49543,10 +49551,16 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { } if (this.colWidths[0] != false && table[r][c].colspan < 2) { + console.log("CELL"); + console.log(table[r][c].cell); var el = Roo.htmleditor.Block.factory(table[r][c].cell); el.width = Math.floor(this.colWidths[c]) +'%'; el.updateElement(el.node); } + else { + console.log("CELL COLSPAN"); + console.log(table[r][c]); + } table[r][c].cell = false; // done } }