rem: var cell = gEditor.getFirstSelectedCell(); 
add: var cellObj = new Object(); var rowObj = new Object(); var colObj = new Object(); gEditor.getFirstSelectedCellInTable(cellObj, rowObj, colObj); var cell = cellObj.value; 
context: function GetNumberOfContiguousSelectedRows(){  if (!gIsHTMLEditor) return 0;  var cell = gEditor.getFirstSelectedCell();  if (!cell)    return 0;  var rows = 1;  var lastIndex = gEditor.getRowIndex(cell);  do {    cell = gEditor.getNextSelectedCell();    if (cell)    {      var index = gEditor.getRowIndex(cell);      if (index == lastIndex + 1)      {        lastIndex = index;        rows++;      }    }  }  while (cell);  return rows;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e3accf5717d96d36aec8b6b546ae81a898af69f5/editor.js/buggy/editor/ui/composer/content/editor.js