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