rem: var selection = window.editorShell.selection; 
add: var selection = window.editorShell.editorSelection;  
context: function IsSelectionInOneCell(){  var selection = window.editorShell.selection;  if (selection && selection.rangeCount == 1)  {    // We have a "normal" single-range selection    if (!selection.isCollapsed &&       selection.anchorNode != selection.focusNode)    {      // Check if both nodes are within the same cell      var anchorCell = window.editorShell.GetElementOrParentByTagName("td", selection.anchorNode);      var focusCell = window.editorShell.GetElementOrParentByTagName("td", selection.focusNode);      return (focusCell && anchorCell && focusCell == anchorCell);    }    // Collapsed selection or anchor == focus (thus must be in 1 cell)    return true;  }  return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2d6ef22482c9f0c1ddbfbfd9a014548f7235334c/ComposerCommands.js/buggy/editor/ui/composer/content/ComposerCommands.js