Fix drag-and-drop upload in distraction-free writing.

props kovshenin.
fixes #27438.


git-svn-id: https://develop.svn.wordpress.org/trunk@27840 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-03-29 07:53:47 +00:00
parent f0bd2b8a91
commit 548a7d2b26
2 changed files with 11 additions and 2 deletions

View File

@ -1646,6 +1646,7 @@
} }
/* Drag & drop on the editor upload */ /* Drag & drop on the editor upload */
#wp-fullscreen-body .uploader-editor,
.wp-editor-wrap .uploader-editor { .wp-editor-wrap .uploader-editor {
background: rgba( 150, 150, 150, 0.9 ); background: rgba( 150, 150, 150, 0.9 );
position: absolute; position: absolute;
@ -1658,12 +1659,17 @@
text-align: center; text-align: center;
} }
.wp-editor-wrap.wp-fullscreen-wrap .uploader-editor { #wp-fullscreen-body .uploader-editor {
background: rgba( 0, 86, 132, 0.9 ); background: rgba( 0, 86, 132, 0.9 );
position: fixed; position: fixed;
z-index: 100050; /* above the editor toolbar */ z-index: 100050; /* above the editor toolbar */
} }
.wp-editor-wrap.wp-fullscreen-wrap .uploader-editor {
opacity: 0;
}
#wp-fullscreen-body .uploader-editor-content,
.wp-editor-wrap .uploader-editor-content { .wp-editor-wrap .uploader-editor-content {
border: 1px dashed #fff; border: 1px dashed #fff;
position: absolute; position: absolute;
@ -1673,6 +1679,7 @@
bottom: 10px; bottom: 10px;
} }
#wp-fullscreen-body .uploader-editor .uploader-editor-title,
.wp-editor-wrap .uploader-editor .uploader-editor-title { .wp-editor-wrap .uploader-editor .uploader-editor-title {
position: absolute; position: absolute;
top: 50%; top: 50%;
@ -1686,6 +1693,7 @@
font-weight: bold; font-weight: bold;
color: #fff; color: #fff;
padding: 0; padding: 0;
margin: 0;
display: none; display: none;
} }
@ -1693,6 +1701,7 @@
background: rgba( 0, 86, 132, 0.9 ); background: rgba( 0, 86, 132, 0.9 );
} }
#wp-fullscreen-body .uploader-editor .uploader-editor-title,
.wp-editor-wrap .uploader-editor.droppable .uploader-editor-title { .wp-editor-wrap .uploader-editor.droppable .uploader-editor-title {
display: block; display: block;
} }

View File

@ -3136,7 +3136,7 @@
} }
media.View.prototype.render.apply( this, arguments ); media.View.prototype.render.apply( this, arguments );
$( '.wp-editor-wrap' ).each( _.bind( this.attach, this ) ); $( '.wp-editor-wrap, #wp-fullscreen-body' ).each( _.bind( this.attach, this ) );
return this; return this;
}, },