From 3913ff435e1cece9a316f9ad78fb515e1e6b9c10 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 25 Nov 2008 02:06:52 +0000 Subject: [PATCH] More PressThis updates from Noel, see #7949 git-svn-id: https://develop.svn.wordpress.org/trunk@9867 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/css/press-this.css | 15 ++++++++++++--- wp-admin/press-this.php | 11 ++++------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/wp-admin/css/press-this.css b/wp-admin/css/press-this.css index 77699a7e8a..01a601e401 100644 --- a/wp-admin/css/press-this.css +++ b/wp-admin/css/press-this.css @@ -47,11 +47,8 @@ img { font-size: 10px; line-height: 18px; float: left; - float: left; } - - .howto { margin-top: 2px; margin-bottom: 3px; @@ -436,8 +433,20 @@ ul.categorychecklist li { position: absolute; } +#content { + width: 96% !important; + margin-left: 1%; + margin-bottom: 10px; + border: 1px solid #f1f1f1; +} + /* Submit */ +#saving { + display: inline; + padding-top: 5px; +} + .submit input, .button, .button-primary, diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index 681ffb491a..f0dc573622 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -127,10 +127,8 @@ switch ($_REQUEST['ajax']) {

- - -

+

'); jQuery('.photolist').append(''); - insert_editor( "\n\n" + '

' + desc + '

'); + insert_editor( "\n\n" + encodeURI('

' + desc + '

')); } return false; } @@ -385,7 +382,7 @@ die; } function insert_editor(text) { if ( '' != text && tinyMCE.activeEditor && ! tinyMCE.activeEditor.isHidden()) { - tinyMCE.execCommand('mceInsertContent', false, '

' + tinymce.DOM.decode(text) + '

', {format : 'raw'}); + tinyMCE.execCommand('mceInsertContent', false, '

' + decodeURI(tinymce.DOM.decode(text)) + '

', {format : 'raw'}); } else { insert_plain_editor(text); } @@ -457,7 +454,7 @@ die; show('photo'); - jQuery('#publish, #save').click(function() { alert('test'); jQuery('#saving').css('display', 'inline'); }); + jQuery('#publish, #save').click(function() { jQuery('#saving').css('display', 'inline'); }); });