rem: var index = tableEditor.getColumnIndex(cell); 
add: var index = gEditor.getColumnIndex(cell); 
context: function GetNumberOfContiguousSelectedColumns(){  var tableEditor = gEditor.QueryInterface(Components.interfaces.nsITableEditor);  if (!tableEditor)    return 0;  var cell = tableEditor.getFirstSelectedCell();  if (!cell)    return 0;  var columns = 1;  var lastIndex = tableEditor.getColumnIndex(cell);  do {    cell = tableEditor.getNextSelectedCell();    if (cell)    {      var index = tableEditor.getColumnIndex(cell);      if (index == lastIndex +1)      {        lastIndex = index;        columns++;      }    }  }  while (cell);  return columns;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/160100a09b4b930d5b308fda04a1e21843697414/editor.js/buggy/editor/ui/composer/content/editor.js