X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-debug.js;h=1d492ab86d9fb980e20a1907f8e29a57d4f2bad8;hb=45ed17afcff97d9cf11c38a406e33f80cff45012;hp=20dea7b7f814b5fe39e6a17b46e6516b3e2ccb47;hpb=e7660d5f55d29f66de983e988d261615d20e2976;p=roojs1 diff --git a/roojs-debug.js b/roojs-debug.js index 20dea7b7f8..1d492ab86d 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -49276,7 +49276,6 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { */ toObject : function() { - console.log("htmleditor.BlockTd toObject"); var ret = { tag : 'td', contenteditable : 'true', // this stops cell selection from picking the table. @@ -49312,8 +49311,6 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { readElement : function(node) { - console.log("htmleditor.BlockTd readElement"); - console.log(node); node = node ? node : this.node ; this.width = node.style.width; this.colspan = Math.max(1,1*node.getAttribute('colspan')); @@ -49420,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'); @@ -49445,6 +49443,8 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { this.colspan += rc.colspan; this.node.setAttribute('colspan', this.colspan); + var table = this.toTableArray(); + this.updateWidths(table); }, @@ -49537,6 +49537,9 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, { }, updateWidths : function(table) { + console.log("htmleditor.BlockTd updateWidths"); + console.log("TABLE"); + console.log(table); for(var r = 0 ; r < table.length; r++) { for(var c = 0 ; c < table[r].length; c++) { @@ -49545,10 +49548,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 } }