From bcbbb70170c60b40ed18ec7b22310b484fe1a776 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 9 Jul 2008 19:51:53 +0000 Subject: [PATCH] Don't format_to_edit TinyMCE inserts. Don't turn selection into a link. Restore editor contents when switching back to text tab. see #7261 #7220 git-svn-id: http://svn.automattic.com/wordpress/trunk@8302 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/press-this.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index 59578030e9..909924da1d 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -395,12 +395,17 @@ if($_REQUEST['ajax'] == 'photo') { ?> case 'text' : set_menu('text'); set_title(''); + + set_editor(""); + + set_editor(""); + return false; break; case 'quote' : set_menu('quote'); set_title(''); - set_editor("

"); + set_editor("

"); return false; break; case 'video' : @@ -435,8 +440,10 @@ if($_REQUEST['ajax'] == 'photo') { ?> set_menu('photo'); set_title(''); - set_editor(""); - + set_editor(""); + + set_editor(""); + jQuery('#extra_fields').show(); jQuery('#extra_fields').before('

'); jQuery('#extra_fields').load(''); @@ -500,11 +507,11 @@ if($_REQUEST['ajax'] == 'photo') { ?>

- +
- +