Fix insetring images in Quick Press and Press This, see #17144

git-svn-id: http://svn.automattic.com/wordpress/trunk@18920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2011-10-07 20:14:21 +00:00
parent ddf8e3e31d
commit 7efc9306f9
5 changed files with 10 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -5283,12 +5283,12 @@ div.postbox div.inside {
margin: 0 0 1em 5em;
}
#dashboard_quick_press #media-buttons {
#dashboard_quick_press .wp-media-buttons {
margin: 0 0 .5em 5em;
padding: 0;
}
#dashboard_quick_press #media-buttons a {
#dashboard_quick_press .wp-media-buttons a {
color: #777;
}
@ -6493,17 +6493,17 @@ img {
margin: 0;
}
.press-this #media-buttons {
.press-this .wp-media-buttons {
cursor: default;
padding: 8px 8px 0;
}
.press-this #media-buttons a {
.press-this .wp-media-buttons a {
cursor: pointer;
padding: 0 0 5px 10px;
}
.press-this #media-buttons img,
.press-this .wp-media-buttons img,
.press-this #submitpost #ajax-loading,
.press-this #submitpost .ajax-loading {
vertical-align: middle;

View File

@ -531,7 +531,7 @@ function wp_dashboard_quick_press() {
</div>
<?php if ( current_user_can( 'upload_files' ) ) : ?>
<div id="media-buttons" class="hide-if-no-js wp-media-buttons">
<div id="wp-content-wrap" class="wp-editor-wrap hide-if-no-js wp-media-buttons">
<?php do_action( 'media_buttons', 'content' ); ?>
</div>
<?php endif; ?>

View File

@ -306,6 +306,8 @@ var photostorage = false;
do_action('admin_head');
?>
<script type="text/javascript">
var wpActiveEditor = 'content';
function insert_plain_editor(text) {
edInsertContent(text);
}

View File

@ -431,7 +431,7 @@ function wp_default_styles( &$styles ) {
// Any rtl stylesheets that don't have a .dev version for ltr
$no_suffix = array( 'farbtastic' );
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20111007' );
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20111007a' );
$styles->add( 'ie', "/wp-admin/css/ie$suffix.css", array(), '20110919' );
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );