rem: return editorShell.GetContentsAs("text/plain", 1); 
add: try { return GetCurrentEditor().outputToString("text/plain", 1); } catch (e) {}  return ""; 
context: function GetSelectionAsText(){  return editorShell.GetContentsAs("text/plain", 1); // OutputSelectionOnly}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/462beec4495a0b979f6840b067848bce4ea41003/editorUtilities.js/clean/editor/ui/composer/content/editorUtilities.js