*/
toObject : function()
{
-
var ret = {
tag : 'td',
contenteditable : 'true', // this stops cell selection from picking the table.
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'));
mergeRight: function()
{
+ console.log("htmleditor.BlockTd mergeRight");
// get the contents of the next cell along..
var tr = this.node.closest('tr');
},
updateWidths : function(table)
{
+ console.log("htmleditor.BlockTd updateWidths");
for(var r = 0 ; r < table.length; r++) {
for(var c = 0 ; c < table[r].length; c++) {