Andrew Ozz
8d670f0862
Plupload: remove the (old) plupload.silverlight.xap, remove the "executable" prop from Moxie.xap, see #25663
...
Built from https://develop.svn.wordpress.org/trunk@27340
git-svn-id: http://core.svn.wordpress.org/trunk@27192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-01 07:37:13 +00:00
Scott Taylor
3dc901a92a
Rather than extending media.controller.CollectionAdd
3 times, make it a constructor that dynamically extends media.controller.Library
and use instances of it instead.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27322
git-svn-id: http://core.svn.wordpress.org/trunk@27174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 23:04:13 +00:00
Scott Taylor
2ea01e110b
Restore / re-tools some docs after [27313].
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27321
git-svn-id: http://core.svn.wordpress.org/trunk@27173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 21:51:14 +00:00
Scott Taylor
db1a8785b5
Some playlist cleanup:
...
* Check properties against the `window` object when using `_.isUndefined()` on globals
* Fix a typo for `$safe_type` introduced in [27311]
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27320
git-svn-id: http://core.svn.wordpress.org/trunk@27172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 21:38:17 +00:00
Andrew Ozz
21b74a037d
Remove debugging cruft, see #25663
...
Built from https://develop.svn.wordpress.org/trunk@27318
git-svn-id: http://core.svn.wordpress.org/trunk@27170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 20:15:16 +00:00
Scott Taylor
cf1d899cc8
In media-editor.js
, use _.isUndefined()
when available.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27317
git-svn-id: http://core.svn.wordpress.org/trunk@27169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 20:11:14 +00:00
Andrew Ozz
d896fa2487
Upgrade Plupload to 2.1.1, props kovshenin, see #25663
...
Built from https://develop.svn.wordpress.org/trunk@27316
git-svn-id: http://core.svn.wordpress.org/trunk@27168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 20:01:16 +00:00
Scott Taylor
baeecbe763
This comment was pasted and does not apply to specified code block.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27315
git-svn-id: http://core.svn.wordpress.org/trunk@27167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 19:51:14 +00:00
Scott Taylor
45e748e57e
wp.media.collection
should be its own civilized instantiable class, not a wrapper/factory. The class shall contain no reference to specific instances, and shall not try to grab static properties of itself. self
, meet this
.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27313
git-svn-id: http://core.svn.wordpress.org/trunk@27166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 19:22:14 +00:00
Scott Taylor
abebb1fde2
Correct a misspelled property name in a media-views.js
annotation.
...
Props kovshenin.
See #26870 .
Built from https://develop.svn.wordpress.org/trunk@27309
git-svn-id: http://core.svn.wordpress.org/trunk@27162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 03:07:14 +00:00
Scott Taylor
8a4ef32f7a
Populate playlist setting values with their default value if they don't exist while parsing shortcode attributes.
...
Props kovshenin.
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27308
git-svn-id: http://core.svn.wordpress.org/trunk@27161 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-27 02:55:13 +00:00
Andrew Nacin
c4545fbbf4
Remove unnecessary quotes from urls in CSS.
...
props TobiasBg.
fixes #22476 .
Built from https://develop.svn.wordpress.org/trunk@27289
git-svn-id: http://core.svn.wordpress.org/trunk@27145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-26 17:23:13 +00:00
Andrew Ozz
511f12f793
When closing the various "edit" media modals, remove the related views elements from the DOM. Props gcorne, fixes #27204 .
...
Built from https://develop.svn.wordpress.org/trunk@27276
git-svn-id: http://core.svn.wordpress.org/trunk@27132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 21:03:15 +00:00
Andrew Nacin
1cb9788f1b
Update the Masonry JavaScript library to version 3.
...
The new script handle is 'masonry'. The old 'jquery-masonry' handle is the official shiv that sits on top of the v3 library. While v3 no longer depends on jQuery, a theme or plugin may have bee
n implicitly loading jQuery though Masonry, rather than additionally declaring it as a dependency for themselves. Thus, the shiv is separate.
Themes should switch to 'masonry' and declare jQuery as a dependency on their own if they need it. Upgrade guide: http://masonry.desandro.com/appendix.html#upgrading-from-v2 . imagesLoaded remai
ns included with Masonry here.
props shelob9.
fixes #25351 .
Built from https://develop.svn.wordpress.org/trunk@27271
git-svn-id: http://core.svn.wordpress.org/trunk@27127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 19:53:15 +00:00
Andrew Nacin
74f2a32f52
Fixed mixed spaces and tabs. Also remove trailing comma. see #26631 .
...
Built from https://develop.svn.wordpress.org/trunk@27266
git-svn-id: http://core.svn.wordpress.org/trunk@27123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-25 17:32:14 +00:00
Scott Taylor
4b66e01e6d
Remove a few unnecessary jQuery selectors added in [27239]. Playlists don't exist in some older contexts that galleries do.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27243
git-svn-id: http://core.svn.wordpress.org/trunk@27100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-24 20:49:14 +00:00
Scott Taylor
c0379aaafc
Load default settings state when creating a new playlist in the media modal. Add a few missing inline @this
annotations in media-editor.js
.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27242
git-svn-id: http://core.svn.wordpress.org/trunk@27099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-24 20:26:14 +00:00
Scott Taylor
943f295d2e
Add core support for Playlists and Video Playlists.
...
* Playlists operate like galleries in the admin.
* Provide default UI and JS support in themes using MediaElement and Backbone.
* The shortcodes are clickable, editable, and configurable using the media modal.
* Playlists support images for each item, whether or not the current theme supports images for `attachment:audio` and `attachment:video`
* Playlists respond to `$content_width` and resize videos accordingly.
* All playlist data is included inline, using a script tag with `type="application/json"`, allowing anyone to unenqueue the WP playlist JS and roll their own.
* Playlist styles are minimal and work out of the box in the last 5 default themes. They inherit and adapt to the current theme's font styles, and their rules are easily overrideable.
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27239
git-svn-id: http://core.svn.wordpress.org/trunk@27096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-24 18:08:16 +00:00
Scott Taylor
5d15ed5202
Access class directly instead of using this
in the shortcodeAttrs
method of any factory-generated wp.media.collection
.
...
Fixes #27183 .
Built from https://develop.svn.wordpress.org/trunk@27238
git-svn-id: http://core.svn.wordpress.org/trunk@27095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-24 13:01:14 +00:00
Dominik Schilling
4dd8be2568
Update Backbone to version 1.1.2.
...
props gcorne.
fixes #27182 .
Built from https://develop.svn.wordpress.org/trunk@27233
git-svn-id: http://core.svn.wordpress.org/trunk@27090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-22 15:42:14 +00:00
Scott Taylor
f319feb524
Register wp.media.controller.GalleryEdit
and wp.media.controller.GalleryAdd
using the new wp.media.controller.Collection*
abstraction code.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27215
git-svn-id: http://core.svn.wordpress.org/trunk@27072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 18:34:12 +00:00
Scott Taylor
4193c7f6c3
In media-views.js
, add wp.media.controller.CollectionAdd
and wp.media.controller.CollectionEdit
to provide an abstraction for Add and Edit screens in the media modal for collection-type things.
...
There are currently no instances of this. Those will be forthcoming.
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27214
git-svn-id: http://core.svn.wordpress.org/trunk@27071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 18:25:14 +00:00
Scott Taylor
911442cdab
Replace the current wp.media.gallery
instance in media-editor.js
with one that leverages wp.media.collection
.
...
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27213
git-svn-id: http://core.svn.wordpress.org/trunk@27070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 18:13:14 +00:00
Scott Taylor
08b1c1b0f5
Add an abstraction of the gallery code in media-editor.js
called wp.media.collection
. This will be the basis for parsing [gallery]
-like shortcodes in the media editor (thing playlists, collections of PDFs, etc).
...
There are currently no instances of this. Those will be forthcoming.
See #26631 .
Built from https://develop.svn.wordpress.org/trunk@27212
git-svn-id: http://core.svn.wordpress.org/trunk@27069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-20 18:07:12 +00:00
Andrew Ozz
d7db798635
TinyMCE: style the modals to match WordPress admin (first-run). Fix couple of IE problems in tiny_mce_popup.js. Props avryl, see #26952 , see #24067
...
Built from https://develop.svn.wordpress.org/trunk@27190
git-svn-id: http://core.svn.wordpress.org/trunk@27049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-18 06:32:14 +00:00
Andrew Ozz
4aeae869dd
TinyMCE: when clicking on a character in the Charmap modal, don't close it if the Crtl key is pressed. Makes it possible to insert several special chars in a row. See #27107 .
...
Built from https://develop.svn.wordpress.org/trunk@27179
git-svn-id: http://core.svn.wordpress.org/trunk@27041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-14 19:20:13 +00:00
Andrew Ozz
f2f6d60624
TinyMCE: add support for audio and video shortcodes without closing, fix jshint warning, see #27016 .
...
Built from https://develop.svn.wordpress.org/trunk@27177
git-svn-id: http://core.svn.wordpress.org/trunk@27039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-13 20:13:13 +00:00
Andrew Nacin
fae539978e
Optimize 69 images (of 127) using the new Grunt task. (See [27172].)
...
fixes #25169 .
Built from https://develop.svn.wordpress.org/trunk@27173
git-svn-id: http://core.svn.wordpress.org/trunk@27037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-13 08:03:14 +00:00
Andrew Nacin
ca4a29c002
Update media-views and wp.Backbone.View for Backbone 1.1.
...
* Collection set/add/remove/reset methods now return models, not `this`, so they can no longer be chained.
* Options passed to Backbone.View's constructor are no longer attached automatically. wp.Backbone.View now does this automatically.
See [27170] for Backbone 1.1 itself.
props gcorne.
fixes #26799 .
Built from https://develop.svn.wordpress.org/trunk@27171
git-svn-id: http://core.svn.wordpress.org/trunk@27036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-13 07:36:13 +00:00
Andrew Nacin
07adb0640f
Update Backbone from 1.0 to 1.1.
...
Also update Underscore to 1.6. Includes the development versions of both, which are not included in the build.
Here is Backbone's changelog:
* Made the return values of Collection’s `set`, `add`, `remove`, and `reset` more useful. Instead of returning `this`, they now return the changed (added, removed or updated) model or list of
models. (This means they can no longer be chained.)
* Backbone Views no longer automatically attach options passed to the constructor as `this.options` and Backbone Models no longer attach `url` and `urlRoot` options, but you can do it yourself if you prefer. (But if you extend `wp.Backbone.View`, options will be attached for you.)
* All `"invalid"` events now pass consistent arguments. First the model in question, then the error object, then options.
* You are no longer permitted to change the id of your model during `parse`. Use `idAttribute` instead.
* On the other hand, `parse` is now an excellent place to extract and vivify incoming nested JSON into associated submodels.
See [27171] (next commit) for changes made to WordPress to be compatible with Backbone 1.1.
props gcorne, georgestephanis.
see #26799 .
Built from https://develop.svn.wordpress.org/trunk@27170
git-svn-id: http://core.svn.wordpress.org/trunk@27035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-13 07:34:13 +00:00
Andrew Ozz
a6b4307422
TinyMCE: add image based placeholders for audio and video shortcodes. Props wonderboymusic, see #27016 .
...
Built from https://develop.svn.wordpress.org/trunk@27169
git-svn-id: http://core.svn.wordpress.org/trunk@27034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-13 05:10:11 +00:00
Andrew Ozz
20fe8f026e
TinyMCE: fix styling in the Charmap modal so the click targets are as large as the table cells. Remove the "Close" button and close the modal after inserting the special char. Fixes #27107 .
...
Built from https://develop.svn.wordpress.org/trunk@27165
git-svn-id: http://core.svn.wordpress.org/trunk@27031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-11 23:33:14 +00:00
Dominik Schilling
5d0f6bd98a
Use jQuery.prop('checked') instead of jQuery.attr('checked'), which is deprecated.
...
Built from https://develop.svn.wordpress.org/trunk@27164
git-svn-id: http://core.svn.wordpress.org/trunk@27030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-11 21:13:14 +00:00
Andrew Ozz
c908c8f708
Edit image in TinyMCE:
...
- Add a "toolbar" at the top of the image with two buttons: Edit and Delete.
- Don't open the edit modal on second click on the image. Makes the "edit" button somewhat pointless and can sometimes trigger after resizing the image.
- When the image has caption: attempt to prevent IE11 from making the caption element resizable and wrapping it in thick border.
- When the caret is inside a caption next to the image, pressing Enter will create a new <p> tag above the caption.
- Hide the image toolbar on drag, cut, align.
Props gcorne, see #24409 .
Built from https://develop.svn.wordpress.org/trunk@27159
git-svn-id: http://core.svn.wordpress.org/trunk@27025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-10 23:48:12 +00:00
Andrew Nacin
6adabc6e4d
Various JSHint fixes. see #26446 .
...
Built from https://develop.svn.wordpress.org/trunk@27131
git-svn-id: http://core.svn.wordpress.org/trunk@26998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-08 00:52:12 +00:00
Scott Taylor
f1fff8a2e9
Add some inline docs to media-views.js
and remove some unnecessary comments from a few super
calls.
...
Props gcorne.
See #26870 .
Built from https://develop.svn.wordpress.org/trunk@27126
git-svn-id: http://core.svn.wordpress.org/trunk@26993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-07 20:21:12 +00:00
Andrew Ozz
5ea367cfe1
Fix scrolling inside the Visual editor on MacOS, add the same functionality to the Text editor, see #27013
...
Built from https://develop.svn.wordpress.org/trunk@27110
git-svn-id: http://core.svn.wordpress.org/trunk@26977 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-06 19:34:12 +00:00
Andrew Nacin
6169e8662b
JSHint fixes for media-views and Gruntfile.
...
props gcorne.
fixes #27032 , #27033 .
Built from https://develop.svn.wordpress.org/trunk@27105
git-svn-id: http://core.svn.wordpress.org/trunk@26972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-06 05:32:12 +00:00
Andrew Ozz
c4f8dede57
TinyMCE: set the proper caption width when clicking image resize handle on image with caption. Props gcorne, fixes #27009 , see #24067 .
...
Built from https://develop.svn.wordpress.org/trunk@27098
git-svn-id: http://core.svn.wordpress.org/trunk@26969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-05 02:07:13 +00:00
Andrew Ozz
5e08452f49
TinyMCE: don't scroll the main window when scrolling the editor content with a mouse wheel or trackpad and reaching the end. Fixes #27013 .
...
Built from https://develop.svn.wordpress.org/trunk@27095
git-svn-id: http://core.svn.wordpress.org/trunk@26967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-05 01:10:13 +00:00
Andrew Nacin
9edfc740fd
Autosave: Fix typo in event namespace. props avryl, see #25272 .
...
Built from https://develop.svn.wordpress.org/trunk@27092
git-svn-id: http://core.svn.wordpress.org/trunk@26964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-04 16:07:12 +00:00
Andrew Ozz
93d3e3efb6
Minor cleanup (jshint) of wp-fullscreen.js and /wordpress/plugin.js, see #24067
...
Built from https://develop.svn.wordpress.org/trunk@27085
git-svn-id: http://core.svn.wordpress.org/trunk@26958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-03 21:31:13 +00:00
Andrew Ozz
2726713764
Add back missing var definition in wplink.js, props TobiasBg, see #24067
...
Built from https://develop.svn.wordpress.org/trunk@27084
git-svn-id: http://core.svn.wordpress.org/trunk@26957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-03 21:27:12 +00:00
Andrew Ozz
12b6085865
TinyMCE: don't replace <i> with <em> and <b> with <strong> and don't remove them when empty, see #24067 , see #23037 .
...
Built from https://develop.svn.wordpress.org/trunk@27083
git-svn-id: http://core.svn.wordpress.org/trunk@26956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-03 20:26:12 +00:00
Sergey Biryukov
e35d675558
Add braces around conditionals. props TobiasBg. fixes #25704 .
...
Built from https://develop.svn.wordpress.org/trunk@27082
git-svn-id: http://core.svn.wordpress.org/trunk@26955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-03 20:17:11 +00:00
Andrew Ozz
2f6d9d37cc
Consolidate "close on Escape" in the media modal, DFW, wpLink and Thickbox. Props kovshenin, fixes #26854 .
...
Built from https://develop.svn.wordpress.org/trunk@27080
git-svn-id: http://core.svn.wordpress.org/trunk@26953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-03 05:31:14 +00:00
Andrew Ozz
28cd7371c4
WP_Link: convert < > and " to HTML entities when setting link title for the Text editor. Fixes #25704 .
...
Built from https://develop.svn.wordpress.org/trunk@27071
git-svn-id: http://core.svn.wordpress.org/trunk@26944 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-02 21:12:12 +00:00
Andrew Ozz
7b4b508b91
TinyMCE: update to 4.0.16, see #24067 .
...
Built from https://develop.svn.wordpress.org/trunk@27062
git-svn-id: http://core.svn.wordpress.org/trunk@26935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-31 18:58:15 +00:00
Andrew Ozz
314f9569e5
TinyMCE: update to 4.0.14. Remove the fix for using init.setup in old plugins, now fixed upstream. See #24067 .
...
Built from https://develop.svn.wordpress.org/trunk@27060
git-svn-id: http://core.svn.wordpress.org/trunk@26933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-31 00:06:12 +00:00
Scott Taylor
79ad468c61
Upgrade MediaElement to 2.13.2 from 2.13.0. For a full list of changes: https://github.com/johndyer/mediaelement/compare/2.13.0...2.13.2
...
Fixes #26954 .
Built from https://develop.svn.wordpress.org/trunk@27059
git-svn-id: http://core.svn.wordpress.org/trunk@26932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-29 18:24:11 +00:00