mirror of
git://develop.git.wordpress.org/
synced 2025-02-26 17:42:26 +01:00
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:
parent
f0bd2b8a91
commit
548a7d2b26
@ -1646,6 +1646,7 @@
|
||||
}
|
||||
|
||||
/* Drag & drop on the editor upload */
|
||||
#wp-fullscreen-body .uploader-editor,
|
||||
.wp-editor-wrap .uploader-editor {
|
||||
background: rgba( 150, 150, 150, 0.9 );
|
||||
position: absolute;
|
||||
@ -1658,12 +1659,17 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wp-editor-wrap.wp-fullscreen-wrap .uploader-editor {
|
||||
#wp-fullscreen-body .uploader-editor {
|
||||
background: rgba( 0, 86, 132, 0.9 );
|
||||
position: fixed;
|
||||
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 {
|
||||
border: 1px dashed #fff;
|
||||
position: absolute;
|
||||
@ -1673,6 +1679,7 @@
|
||||
bottom: 10px;
|
||||
}
|
||||
|
||||
#wp-fullscreen-body .uploader-editor .uploader-editor-title,
|
||||
.wp-editor-wrap .uploader-editor .uploader-editor-title {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
@ -1686,6 +1693,7 @@
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -1693,6 +1701,7 @@
|
||||
background: rgba( 0, 86, 132, 0.9 );
|
||||
}
|
||||
|
||||
#wp-fullscreen-body .uploader-editor .uploader-editor-title,
|
||||
.wp-editor-wrap .uploader-editor.droppable .uploader-editor-title {
|
||||
display: block;
|
||||
}
|
||||
|
@ -3136,7 +3136,7 @@
|
||||
}
|
||||
|
||||
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;
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user