if (!mEditorShell) { mEditorShell = do_CreateInstance("@mozilla.org/editor/editorshell;1"); }
NS_ASSERTION(mEditorShell, "Editor box object not initted");
NS_IMETHODIMP nsEditorBoxObject::GetEditorShell(nsIEditorShell** aResult){  if (!mEditorShell) {    mEditorShell = do_CreateInstance("@mozilla.org/editor/editorshell;1");  }  *aResult = mEditorShell;  NS_IF_ADDREF(*aResult);  return NS_OK;}