Scott Taylor
d8e57f0148
As per @gcorne's suggestion, when calling wp.mce.views.register()
, automatically set shortcode
equal to the passed type
in the set of default args instead of introducing a type
property. It is still overrideable by the args that are passed.
...
See #28458 .
Built from https://develop.svn.wordpress.org/trunk@28689
git-svn-id: http://core.svn.wordpress.org/trunk@28507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-06 14:22:22 +00:00
Scott Taylor
1bb24133d9
Improve inline doc descriptions in media-views.js
.
...
Props ericlewis.
See #28459 .
Built from https://develop.svn.wordpress.org/trunk@28688
git-svn-id: http://core.svn.wordpress.org/trunk@28506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-06 14:13:17 +00:00
Andrew Ozz
fbdb89b89a
wpView: fix deselecting a view when clicking outside the iframe body. Props avryl, fixes #28268
...
Built from https://develop.svn.wordpress.org/trunk@28687
git-svn-id: http://core.svn.wordpress.org/trunk@28505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-06 05:04:14 +00:00
Andrew Ozz
23b0443578
wpView: fire a nodeChanged
event after selecting a view so the editor UI gets updated. Props avryl, fixes #28385
...
Built from https://develop.svn.wordpress.org/trunk@28686
git-svn-id: http://core.svn.wordpress.org/trunk@28504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-06 04:43:17 +00:00
Andrew Ozz
a59cf45c4d
TinyMCE: remove   from empty paragraphs inside the visual editor, props avryl, fixes #28282
...
Built from https://develop.svn.wordpress.org/trunk@28685
git-svn-id: http://core.svn.wordpress.org/trunk@28503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-06 04:20:14 +00:00
Andrew Ozz
60e323d911
wpView: use data-mce-selected
instead of adding a class to mark a view as selected. This prevents adding an unneeded undo level. Props avryl, fixes #28313
...
Built from https://develop.svn.wordpress.org/trunk@28684
git-svn-id: http://core.svn.wordpress.org/trunk@28502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-06 02:12:14 +00:00
Helen Hou-Sandí
b5ef672c6b
Grid view for the media library, first pass. This is alpha; expect imperfection. We will be iterating further.
...
props ericlewis, shaunandrews, wonderboymusic.
see #24716 .
Built from https://develop.svn.wordpress.org/trunk@28682
git-svn-id: http://core.svn.wordpress.org/trunk@28500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-05 22:01:18 +00:00
Scott Taylor
ce508e95c2
Simplify the creation of MCE views somewhat:
...
* Rename the `wp.mce.media` mixin (which was named too ambiguously) to `wp.mce.av`.
* Use the same technique for extending mixins for MCE base classes for views and their base.View property class
* `wp.mce.views.register()` should have default constructor logic if one is not passed.
Props avryl.
See #28458 .
Built from https://develop.svn.wordpress.org/trunk@28680
git-svn-id: http://core.svn.wordpress.org/trunk@28498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-05 17:27:13 +00:00
Scott Taylor
5d89ee4b3b
Media modal documentation:
...
Add some clarity to default values for controllers.
Props ericlewis.
See #28459 .
Built from https://develop.svn.wordpress.org/trunk@28675
git-svn-id: http://core.svn.wordpress.org/trunk@28493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-05 14:54:14 +00:00
Scott Taylor
17271702ca
In the spirit of [27622], add a few CSS rules to ensure that videos will be responsive, regardless of theme.
...
Props Funkatronic.
Fixes #28414 .
Built from https://develop.svn.wordpress.org/trunk@28650
git-svn-id: http://core.svn.wordpress.org/trunk@28468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-02 00:40:15 +00:00
Scott Taylor
4fd5ffe994
In WPPlaylistView::ended()
, at the end of a playlist, set the index to 0
and call ->setCurrent()
instead of ->loadCurrent()
so that the first track is properly highlighted.
...
Fixes #28428 .
Built from https://develop.svn.wordpress.org/trunk@28649
git-svn-id: http://core.svn.wordpress.org/trunk@28467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-02 00:27:18 +00:00
Andrew Ozz
15a1f80885
TinyMCE in iOS:
...
- Fix placing the caret at the bottom of longer posts when the keyboard is open.
- Disable resizing on switching editors and on show/hide the kitchen sink row.
See #28242
Built from https://develop.svn.wordpress.org/trunk@28626
git-svn-id: http://core.svn.wordpress.org/trunk@28446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-30 02:38:16 +00:00
Andrew Ozz
1e8b5ef008
TinyMCE: remove margins from the image toolbar wrapper, props avryl, fixes #28389
...
Built from https://develop.svn.wordpress.org/trunk@28624
git-svn-id: http://core.svn.wordpress.org/trunk@28445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-29 22:59:14 +00:00
Helen Hou-Sandí
207bfa43b3
Fix a jshint error introduced in [28607]. see #23560 .
...
Built from https://develop.svn.wordpress.org/trunk@28617
git-svn-id: http://core.svn.wordpress.org/trunk@28441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-29 14:25:14 +00:00
Andrew Ozz
e518fda253
Regex should be non-greedy, see #28389
...
Built from https://develop.svn.wordpress.org/trunk@28615
git-svn-id: http://core.svn.wordpress.org/trunk@28439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-29 07:56:14 +00:00
Andrew Ozz
500bfe7a54
TinyMCE: fix problems with undo/redo after resizing an image several times. Fixes #28389 .
...
Built from https://develop.svn.wordpress.org/trunk@28614
git-svn-id: http://core.svn.wordpress.org/trunk@28438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-29 07:51:14 +00:00
Helen Hou-Sandí
78d90bd443
At long last, improved keyboard accessibility for the media modal.
...
props lessbloat, grahamarmfield, sharonaustin, bramd.
see #23560 .
Built from https://develop.svn.wordpress.org/trunk@28607
git-svn-id: http://core.svn.wordpress.org/trunk@28431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-29 03:39:15 +00:00
Andrew Ozz
c4243e53d0
TinyMCE: update to 4.0.28. Also includes 43fff5b453
. Part-props avryl for the patch on #27941 , fixes #28391 , #27941 .
...
Built from https://develop.svn.wordpress.org/trunk@28606
git-svn-id: http://core.svn.wordpress.org/trunk@28430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-29 00:59:15 +00:00
Scott Taylor
987e9905ac
When parsing an [embed]
shortcode into a TinyMCE view, don't attempt to append any returned <script>
s to the editor's <head>
. This affects only a few supported endpoints: Issuu and Twitter.
...
See #28195 .
Built from https://develop.svn.wordpress.org/trunk@28594
git-svn-id: http://core.svn.wordpress.org/trunk@28419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-27 20:00:15 +00:00
Scott Taylor
3c1723afd7
When adding a URL in the Insert from URL
state in the media modal, attempt to show a preview of the content. Drop the unused width and height fields.
...
This will probably be iterated upon.
Props helen, jtsternberg, wonderboymusic.
See #15490 .
Built from https://develop.svn.wordpress.org/trunk@28581
git-svn-id: http://core.svn.wordpress.org/trunk@28406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-26 23:57:14 +00:00
Scott Taylor
89864b4a5a
Don't pass embeds through the_content()
when trying to render MCE previews, leverage WP_Embed
and do_shortcode()
instead.
...
Props kovshenin.
See #28195 .
Built from https://develop.svn.wordpress.org/trunk@28580
git-svn-id: http://core.svn.wordpress.org/trunk@28405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-26 23:43:15 +00:00
Scott Taylor
746397f18b
Allow the settings view for galleries to be disabled when instantiating wp.media.controller.GalleryEdit
.
...
Props nd987.
Fixes #23116 .
Built from https://develop.svn.wordpress.org/trunk@28577
git-svn-id: http://core.svn.wordpress.org/trunk@28402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-26 22:49:16 +00:00
Andrew Ozz
1ba1b3ec29
TinyMCE: fix saving the editor content on switching Visual -> Text, fixes #28353
...
Built from https://develop.svn.wordpress.org/trunk@28576
git-svn-id: http://core.svn.wordpress.org/trunk@28401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-25 22:47:13 +00:00
Andrew Ozz
f7186fb198
TinyMCE: update to 4.0.26. Includes fixes for the 'paste' plugin (paste from Word/Excel, paste in WebKit/Blink), show/hide/isHidden in inline mode, drag/drop in tables and in Safari, and others. Fixes #28342 , #28016 , #28250 and #28067
...
Built from https://develop.svn.wordpress.org/trunk@28568
git-svn-id: http://core.svn.wordpress.org/trunk@28393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-24 01:44:15 +00:00
Andrew Ozz
8bc84c0441
wpView: fix selecting a view's text string in Safari, props gcorne, fixes #28088
...
Built from https://develop.svn.wordpress.org/trunk@28565
git-svn-id: http://core.svn.wordpress.org/trunk@28391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-23 20:56:14 +00:00
Andrew Ozz
f184243aa3
DFW: fix closing only the wpLink or media modal when pressing Esc.
...
Built from https://develop.svn.wordpress.org/trunk@28455
git-svn-id: http://core.svn.wordpress.org/trunk@28282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-16 18:17:14 +00:00
Sergey Biryukov
abc830ca9d
DFW: Properly handle Esc key when the content is focused or when switching browser tabs.
...
props avryl.
fixes #28279 .
Built from https://develop.svn.wordpress.org/trunk@28443
git-svn-id: http://core.svn.wordpress.org/trunk@28270 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-16 10:43:14 +00:00
Scott Taylor
5682d30b6e
In wp.media.view.Settings::update()
, when handling checkboxes, check for a value of 'false'
in addition to casting value
to boolean. !! 'false'
evaluates to true
.
...
Props adamsilverstein.
Fixes #23954 .
Built from https://develop.svn.wordpress.org/trunk@28371
git-svn-id: http://core.svn.wordpress.org/trunk@28199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-11 07:03:15 +00:00
Scott Taylor
aeadf0c7cf
Allow users to set overrides for MediaElement instances by always passing _wpmejsSettings
instead of just _wpmejsSettings.pluginPath
.
...
Props Otto42 for the initial patch.
Fixes #25243 .
Built from https://develop.svn.wordpress.org/trunk@28370
git-svn-id: http://core.svn.wordpress.org/trunk@28198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-11 06:25:15 +00:00
Scott Taylor
60f395e4c2
Update the default (WP-defined) styles for MediaElement players to be more in-line with our flat aesthetic. Use the new official colors.
...
Props celloexpressions.
Fixes #27516 .
Built from https://develop.svn.wordpress.org/trunk@28365
git-svn-id: http://core.svn.wordpress.org/trunk@28193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-11 02:23:14 +00:00
Scott Taylor
37b7f39e95
When pausing "all" players attached to MCE views, don't reach into global scope and pause "every" player. Only pause the players bound to MCE views.
...
Fixes #27971 .
Built from https://develop.svn.wordpress.org/trunk@28364
git-svn-id: http://core.svn.wordpress.org/trunk@28192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-11 02:07:14 +00:00
Scott Taylor
fb1aab6520
Support loop
for [audio]
and [video]
shortcodes that specify files that are played using MediaElement's Flash plugin bridge.
...
Fixes #27368 .
Built from https://develop.svn.wordpress.org/trunk@28363
git-svn-id: http://core.svn.wordpress.org/trunk@28191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-11 01:28:15 +00:00
Scott Taylor
d06c353995
MediaElement players need clear: both
to play nice with adjacent floated elements.
...
Fixes #27385 .
Built from https://develop.svn.wordpress.org/trunk@28361
git-svn-id: http://core.svn.wordpress.org/trunk@28189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-11 00:14:14 +00:00
Scott Taylor
f22beb987c
First pass at wpview
logic for the [embed]
shortcode. URLs on a their own line are parsed as well. The toolbar will appear with the "remove" button when the view is clicked. Edit has not been implemented yet.
...
Props avryl, wonderboymusic.
See #28195 .
Built from https://develop.svn.wordpress.org/trunk@28358
git-svn-id: http://core.svn.wordpress.org/trunk@28186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-10 23:36:18 +00:00
Andrew Nacin
6295631a4b
Customizer: Avoid hiding 'Remove' buttons unrelated to custom headers.
...
props rzen, ehg.
fixes #27848 .
Built from https://develop.svn.wordpress.org/trunk@28266
git-svn-id: http://core.svn.wordpress.org/trunk@28094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-06 04:14:14 +00:00
Dominik Schilling
c7adbde777
Update jQuery to 1.11.1.
...
fixes #28103 .
Built from https://develop.svn.wordpress.org/trunk@28238
git-svn-id: http://core.svn.wordpress.org/trunk@28066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-02 09:29:16 +00:00
Andrew Nacin
ba0168819c
Shortcode JS: Avoid errors when an escaped shortcode includes a newline between brackets.
...
props gcorne.
props Clorith, jorbin for tests.
see #27907 , for trunk.
Built from https://develop.svn.wordpress.org/trunk@28223
git-svn-id: http://core.svn.wordpress.org/trunk@28051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-01 03:37:13 +00:00
Dominik Schilling
20c10c5e2c
Customizer: Allow to skip cropping header images if image width is smaller than or equal to theme width.
...
Add tests.
see #27936 for trunk.
Built from https://develop.svn.wordpress.org/trunk@28219
git-svn-id: http://core.svn.wordpress.org/trunk@28049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-25 20:25:19 +00:00
Dominik Schilling
b6e3942bdd
Revert [28217].
...
Misfired commit for #27936 .
Built from https://develop.svn.wordpress.org/trunk@28218
git-svn-id: http://core.svn.wordpress.org/trunk@28048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-25 20:18:16 +00:00
Dominik Schilling
1849473907
Recent Posts Widget: Use ob_end_flush()
instead of ob_flush()
.
...
`ob_end_flush()` flushes the output buffer *and* turns output buffering off, same as `ob_get_flush()`.
props m_i_n.
see #28009 for trunk.
Built from https://develop.svn.wordpress.org/trunk@28217
git-svn-id: http://core.svn.wordpress.org/trunk@28047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-25 14:21:15 +00:00
Andrew Ozz
5de05f97dd
TinyMCE: update the 'paste' plugin to the latest dev. version. Included changes: 1b7c41cd7b
and 7998b8025d
. See #27909 , for trunk.
...
Built from https://develop.svn.wordpress.org/trunk@28192
git-svn-id: http://core.svn.wordpress.org/trunk@28022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-24 00:59:13 +00:00
Andrew Ozz
7b4d339454
TinyMCE: when adding a caption to an image that is in a paragraph with other text, move the caption node above the paragraph instead of below. See #27922 , for trunk.
...
Built from https://develop.svn.wordpress.org/trunk@28190
git-svn-id: http://core.svn.wordpress.org/trunk@28020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-23 20:42:14 +00:00
Andrew Ozz
3eb1616925
Drag/drop on the editor to upload: don't trigger the uploader when selected test is being dragged from one window to another. See #27880 , for trunk.
...
Built from https://develop.svn.wordpress.org/trunk@28189
git-svn-id: http://core.svn.wordpress.org/trunk@28019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-23 20:35:13 +00:00
Andrew Ozz
f81a107cee
TinyMCE: fix the "active" state of the Link button when an image wrapped in a link is selected, see #27847 , for trunk.
...
Built from https://develop.svn.wordpress.org/trunk@28185
git-svn-id: http://core.svn.wordpress.org/trunk@28016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-22 21:11:14 +00:00
Scott Taylor
6deb34ebb3
Alter the layout of the checkboxes in the modal view for Audio/Video Details to allow translations more room to breathe.
...
See #27893 .
Built from https://develop.svn.wordpress.org/trunk@28184
git-svn-id: http://core.svn.wordpress.org/trunk@28015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-22 20:29:14 +00:00
Scott Taylor
0b1272e445
Persisting <track>
elements as the body of a [video]
shortcode in MCE Views:
...
* When generating the view's HTML, ensure that the shortcode's `content` is added to the model
* Add a `PostProcess` event in the `wpview` plugin to properly return the shortcode when the editor mode is toggled, ensuring that elements in the body are not dropped.
Props azaozz, wonderboymusic.
See #27915 .
Built from https://develop.svn.wordpress.org/trunk@28183
git-svn-id: http://core.svn.wordpress.org/trunk@28014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-22 18:21:16 +00:00
Scott Taylor
55becc0dfd
Refinements for asynchronous rendering in wp.mce.media.PlaylistView
:
...
* Add `visibility: hidden` as an inline style to `<audio>` tags, there is a race with the stylesheet which can get enqueued in the body and loaded in the footer.
* When creating new instances of `MediaElementPlayer`, always push them onto a stack. Lone views can be responsible for multiple instances of the same shortcode on render.
* Rename `wp.media.mixin.unsetPlayer()` to `wp.media.mixin.unsetPlayers()` to reflect the above.
* Call `wp.media.mixin.unsetPlayers()` on the view's `unbind()` method, instead of inline in the `render()` method
* Make sure `WPPlaylistView` is instantiated for each editor instance
* Ensure that the `No Items Found` view state is not rendered when attachments actually do exist.
Props gcorne, wonderboymusic.
See #27899 .
Built from https://develop.svn.wordpress.org/trunk@28182
git-svn-id: http://core.svn.wordpress.org/trunk@28013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-22 17:53:16 +00:00
Andrew Nacin
a6eedd18b2
TinyMCE: Restore old wordpress_adv_hidden editor parameter to enable force-showing the kitchen sink.
...
props azaozz.
see #27963 , for trunk.
Built from https://develop.svn.wordpress.org/trunk@28181
git-svn-id: http://core.svn.wordpress.org/trunk@28012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-22 13:50:14 +00:00
Scott Taylor
baf754ce35
Use the proper translated string for Video Playlist "drag info" - the text displayed above the playlist's sortable attachments.
...
See #27937 .
Built from https://develop.svn.wordpress.org/trunk@28178
git-svn-id: http://core.svn.wordpress.org/trunk@28009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-21 19:37:14 +00:00
Scott Taylor
c5c18d3848
Add calc()
rules for max-width
of playlist caption.
...
Props celloexpressions.
See #27923 .
Built from https://develop.svn.wordpress.org/trunk@28174
git-svn-id: http://core.svn.wordpress.org/trunk@28005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-20 05:10:15 +00:00