Index: wp-includes/formatting.php
===================================================================
--- wp-includes/formatting.php	(revision 21535)
+++ wp-includes/formatting.php	(working copy)
@@ -1267,7 +1267,7 @@
  */
 function format_to_edit( $content, $richedit = false ) {
 	$content = apply_filters( 'format_to_edit', $content );
-	if ( ! $richedit )
+	if ( $richedit )
 		$content = esc_textarea( $content );
 	return $content;
 }
