When inserting from URL in the media modal, retain query params and properly insert the caption code.

Props koopersmith
fixes #22796


git-svn-id: https://develop.svn.wordpress.org/trunk@23110 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-12-06 23:12:59 +00:00
parent 556664dd07
commit a0a13a3fc4
3 changed files with 70 additions and 22 deletions
+25 -11
View File
@@ -1249,6 +1249,18 @@
/**
* Spinner
*/
.media-frame .spinner {
background: url(../images/wpspin.gif) no-repeat;
background-size: 16px 16px;
display: none;
opacity: 0.7;
filter: alpha(opacity=70);
width: 16px;
height: 16px;
margin: 0;
}
.media-sidebar .settings-save-status {
background: #f5f5f5;
float: right;
@@ -1257,14 +1269,6 @@
}
.media-sidebar .settings-save-status .spinner {
background: url(../images/wpspin.gif) no-repeat;
background-size: 16px 16px;
display: none;
float: right;
opacity: 0.7;
filter: alpha(opacity=70);
width: 16px;
height: 16px;
margin: 0 5px 0;
}
@@ -1397,8 +1401,7 @@
.embed-url {
display: block;
position: relative;
height: 40px;
padding: 0 16px 16px;
padding: 0 16px 7px;
margin: 0;
z-index: 250;
background: #fff;
@@ -1416,6 +1419,16 @@
box-shadow: inset 2px 2px 4px -2px rgba( 0, 0, 0, 0.1 );
}
.media-frame .embed-url .spinner {
position: absolute;
top: 16px;
right: 26px;
}
.media-frame .embed-loading .embed-url .spinner {
display: block;
}
.embed-link-settings,
.embed-image-settings {
position: absolute;
@@ -1437,6 +1450,7 @@
.media-embed .thumbnail img {
max-height: 200px;
display: block;
}
.media-embed .thumbnail:after {
@@ -1652,7 +1666,7 @@
background-size: 134px 15px;
}
.media-sidebar .settings-save-status .spinner {
.media-frame .spinner {
background-image: url(../images/wpspin-2x.gif);
}
}