Add a "Beta Media" button to the post editor. Currently, it is only capable of inserting images. Other attachment types and galleries need not apply... yet.

* Added `wp.media.string.image( attachment, props )` for generating an image as a string from an attachment and relevant attachment display properties.
* Properly localized the gallery workflow.
* Added `Workflow.update()`, which closes the modal, triggers an `update` event, and resets the selection.
* Added `wp.mce.media` to manage the various media workflows for editors.

see #21813, #21814, #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@22036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Daryl Koopersmith
2012-09-27 04:09:43 +00:00
parent 3ffb74a6ef
commit eec758fd26
6 changed files with 160 additions and 56 deletions

View File

@@ -1008,7 +1008,7 @@
.wp-editor-tools {
height: 30px;
padding: 0 10px;
padding: 0 10px 0 0;
}
.wp-editor-container {
@@ -1079,16 +1079,18 @@ html[dir="rtl"] .wp-switch-editor {
color: #555;
}
.wp-media-buttons {
line-height: 1;
padding: 9px 0 0;
.wp-media-buttons .button {
margin-right: 5px;
}
.wp-media-buttons .insert-media {
padding-left: 0.4em;
}
.wp-media-buttons a {
text-decoration: none;
color: #333;
color: #464646;
font-size: 12px;
vertical-align: bottom;
}
.wp-media-buttons img {