htmlEditor->SetBodyAttribute(NS_ConvertASCIItoUCS2("bgcolor"), NS_ConvertASCIItoUCS2("red"));
htmlEditor->SetBodyAttribute(NS_LITERAL_STRING("bgcolor"), NS_LITERAL_STRING("red"));
nsresult NS_DoEditorTest(PRInt32 aCommandID){  nsCOMPtr<nsIHTMLEditor> htmlEditor = do_QueryInterface(gEditor);  nsCOMPtr<nsITableEditor> tableEditor = do_QueryInterface(gEditor);  if (htmlEditor && tableEditor)  {    switch(aCommandID)    {      case VIEWER_EDIT_SET_BGCOLOR_RED:        htmlEditor->SetBodyAttribute(NS_ConvertASCIItoUCS2("bgcolor"), NS_ConvertASCIItoUCS2("red"));        break;      case VIEWER_EDIT_SET_BGCOLOR_YELLOW:        htmlEditor->SetBodyAttribute(NS_ConvertASCIItoUCS2("bgcolor"), NS_ConvertASCIItoUCS2("yellow"));        break;      case VIEWER_EDIT_INSERT_CELL:          tableEditor->InsertTableCell(1, PR_FALSE);        break;          case VIEWER_EDIT_INSERT_COLUMN:        tableEditor->InsertTableColumn(1, PR_FALSE);        break;          case VIEWER_EDIT_INSERT_ROW:            tableEditor->InsertTableRow(1, PR_FALSE);        break;          case VIEWER_EDIT_DELETE_TABLE:          tableEditor->DeleteTable();        break;          case VIEWER_EDIT_DELETE_CELL:          tableEditor->DeleteTableCell(1);        break;          case VIEWER_EDIT_DELETE_COLUMN:        tableEditor->DeleteTableColumn(1);        break;          case VIEWER_EDIT_DELETE_ROW:        tableEditor->DeleteTableRow(1);        break;          case VIEWER_EDIT_JOIN_CELL_RIGHT:        tableEditor->JoinTableCells(PR_FALSE);        break;          case VIEWER_DISPLAYTEXT:      case VIEWER_DISPLAYHTML:        PrintEditorOutput(gEditor, aCommandID);        break;     default:        return NS_ERROR_NOT_IMPLEMENTED;        }  }  return NS_OK;}