rem: textEditor = gEditor.QueryInterface(Components.interfaces.nsIPlaintextEditor); if (textEditor) textEditor.InsertText(smileyText);  gContentWindow.focus(); 
add: try { gEditor.InsertText(smileyText); gContentWindow.focus(); } catch(e) {} 
context: function SetSmiley(smileyText){  textEditor = gEditor.QueryInterface(Components.interfaces.nsIPlaintextEditor);  if (textEditor)    textEditor.InsertText(smileyText);  gContentWindow.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d56262a401c9d60bbef8fdbf3317ef55705279f1/editor.js/buggy/editor/ui/composer/content/editor.js