wpLink: replace the "Title" field with a "Text" field and populate it with the link text when editing an existing link or with the selected text if any.

Props iseulde. See #28206.
Built from https://develop.svn.wordpress.org/trunk@31713


git-svn-id: http://core.svn.wordpress.org/trunk@31694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz
2015-03-11 02:40:27 +00:00
parent 97fa0cf1b3
commit 9029c07592
11 changed files with 160 additions and 102 deletions

View File

@@ -1193,7 +1193,6 @@ i.mce-i-hr:before {
-webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
width: 500px;
height: 250px;
overflow: hidden;
margin-right: -250px;
margin-top: -125px;
@@ -1229,6 +1228,14 @@ i.mce-i-hr:before {
margin-top: -250px;
}
#wp-link-wrap .wp-link-text-field {
display: none;
}
#wp-link-wrap.has-text-field .wp-link-text-field {
display: block;
}
#link-modal-title {
background: #fcfcfc;
border-bottom: 1px solid #dfdfdf;
@@ -1395,6 +1402,10 @@ i.mce-i-hr:before {
right: 16px;
left: 16px;
bottom: 16px;
top: 172px;
}
.has-text-field #wp-link .query-results {
top: 205px;
}
@@ -1529,11 +1540,14 @@ i.mce-i-hr:before {
@media screen and ( max-width: 782px ) {
#wp-link-wrap {
height: 280px;
margin-top: -140px;
}
#wp-link-wrap.search-panel-visible .query-results {
top: 195px;
}
#wp-link-wrap.search-panel-visible.has-text-field .query-results {
top: 235px;
}