Konstantin Obenland
eea1678cd3
Editor: Exclude shift from modifier keys when handling spacebar shortcuts.
...
Patterns that activate on enter are still canceled with any modifier active.
Props azaozz.
Fixes #33382 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33622 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-17 14:50:42 +00:00
Ella Iseulde Van Dorpe
994b1d9a5b
TinyMCE: fix inline toolbar repositioning for inline editors
...
Fixes #33286 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33592 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-06 21:34:16 +00:00
Mark Jaquith
7e4a72b9bc
Only use a bare URL when the link text field is used.
...
Fixes bug that would remove images on edit, in some circumstances.
fixes #33293
props azaozz
git-svn-id: https://develop.svn.wordpress.org/trunk@33591 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-06 20:57:31 +00:00
Sergey Biryukov
1dcb93b541
wpLink: Make sure the link wrapper is the last element in the body, otherwise the inline editor toolbar may show up above the backdrop.
...
props azaozz.
fixes #33268 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33588 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-06 02:16:54 +00:00
Ella Iseulde Van Dorpe
3d88983860
TinyMCE: wplink: fix WPLinkPreview for multiple editors
...
Fixes #33264 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33584 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-04 21:41:34 +00:00
Ella Iseulde Van Dorpe
aaf15cdde8
TinyMCE: wptextpattern: trim whitespace
...
Props iseulde and azaozz.
Fixes #33246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33563 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-03 22:06:25 +00:00
Andrew Ozz
86e10358fd
TinyMCE: fix initializing the editor on switching Text => Visual when the Text editor is loaded first.
...
Props stuartshields, peterwilsoncc, netweb, azaozz. Fixes #33192 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33527 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-02 20:00:56 +00:00
Andrew Ozz
2dfd08f05a
TinyMCE: update to 4.2.3, changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt .
...
Fixes #33203 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33516 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-30 17:06:23 +00:00
Ella Iseulde Van Dorpe
18e5891539
TinyMCE: wptextpattern: stop propagation on undo
...
See #31441 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33512 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-29 23:44:08 +00:00
Ella Iseulde Van Dorpe
662355f30c
TinyMCE: wptextpattern: undo on esc after enter
...
See #31441 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33508 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-29 23:11:42 +00:00
Ella Iseulde Van Dorpe
976687bc59
TinyMCE: wptextpattern: reorder undo
...
After formatting on enter, undo should undo the formatting first, then undo the new line.
See #31441 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33507 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-29 22:48:02 +00:00
Andrew Ozz
362bb806cd
TinyMCE: fix (again) the text in the keyboard shortcuts modal for the changed patterns.
...
See #31441 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33504 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-29 21:53:22 +00:00
Andrew Ozz
b1933f53dc
TinyMCE: fix the text in the keyboard shortcuts modal for the changed patterns.
...
See #31441 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33501 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-29 21:06:13 +00:00
Weston Ruter
27c7e27d8b
Twenty Fifteen: Only re-initialize the main navigation in the Customizer when it is specifically updated.
...
* Fix a bug where updating the social menu links would cause the main navigation to get its toggle-expanded buttons duplicated.
* Persist any existing submenu expanded states on the updated menu.
* Improve naming of `customize-preview-menu-refreshed` event param from `wpNavArgs` to `wpNavMenuArgs` (old name is retained and marked as deprecated).
Fixes #33177 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33491 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-29 18:12:26 +00:00
Ella Iseulde Van Dorpe
b5c42d6b33
TinyMCE: views: correct cursor position after paste
...
Fixes #33174 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33484 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-29 13:48:58 +00:00
Andrew Ozz
1558be9dfa
Fix updating of nonces on the Edit Post screen after the log in expires and the user logs in again.
...
Props iseulde, azaozz. Fixes #33098 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33468 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-28 22:06:52 +00:00
Ella Iseulde Van Dorpe
d5a39fe063
TinyMCE: iOS: wrap long strings
...
Fixes #33157 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33464 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-28 20:31:36 +00:00
Mark Jaquith
cda0fa1f76
Fill empty TinyMCE paragraphs with a dummy <br /> on all browsers.
...
fixes #33151
props iseulde
git-svn-id: https://develop.svn.wordpress.org/trunk@33461 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-28 14:11:04 +00:00
Ella Iseulde Van Dorpe
4393f478ea
TinyMCE: wptextpattern: fix typo and make it faster
...
See #31441 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33458 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-28 11:40:29 +00:00
Ella Iseulde Van Dorpe
34354fc3c0
TinyMCE: wptextpattern: headings on enter
...
Fixes #31441 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33452 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-27 23:15:15 +00:00
Andrew Ozz
a5d922f427
TinyMCE: remove role=tab from the keyboard shortcuts help dialog.
...
See #33031 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33430 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-26 21:36:06 +00:00
Andrew Ozz
4ca5459784
TinyMCE: fix accessibility for the keyboard shortcuts help dialog.
...
Props afercia, azaozz. Fixes #33031 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33429 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-26 19:13:28 +00:00
Ella Iseulde Van Dorpe
7cff5c8794
JSHint for [33426]
...
Oops. :|
See #33096 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33428 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-26 18:17:37 +00:00
Ella Iseulde Van Dorpe
079d7eb56e
TinyMCE: views: use media setting to get post ID
...
Also fix dependency declarations and confusing variable names.
Props rhurling.
Fixes #33096 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33426 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-26 10:10:31 +00:00
Ella Iseulde Van Dorpe
1a18cb3b00
Revert [31849] and [33351]
...
Also set the max-width of images in themes to 100%, not in pixels.
See #33022 and #31250 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33418 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-25 22:59:23 +00:00
Ella Iseulde Van Dorpe
eef42f591f
Editor: fit images
...
Fixes #31253 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33417 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-25 22:43:46 +00:00
Ella Iseulde Van Dorpe
4f9d20fe5a
Editor: add space around aligned images
...
Also increase the font size of captions.
Part props jmichaelward.
Fixes #32176 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33415 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-25 13:11:32 +00:00
Andrew Ozz
45e535b23d
TinyMCE: restore support for <script> tags.
...
See #33083 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33414 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-24 22:03:25 +00:00
Andrew Ozz
eee2fa493b
TinyMCE: update to 4.2.2. Changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt .
...
Fixes #33033 , #33042 . See #33083 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33369 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-22 21:11:44 +00:00
Andrew Ozz
fd0c1665f8
TinyMCE: add min-width to the placeholder images for the more and nextpage tags to fix them in themes that force width = auto.
...
Fixes #33022 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33351 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-21 22:35:04 +00:00
Scott Taylor
ca207b8c08
Customizer: Nav Menus JS cleanup, second round
...
* Follow the same pattern of namespace instantiation that `WidgetCustomizerPreview` uses
* Remove use of `self` for global delegation
* Use `api` for `wp.customize` and import only top-level globals
* Bind `this` where appropriate and disambiguate scope
See #32911 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33347 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-21 17:39:24 +00:00
Scott Taylor
940b06cff2
Customizer: Nav Menus JS cleanup, first round
...
* In `init`, settings should be fresh and set to default values before extending
* When looping via `_.each`, pass `this` as 3rd arg to bind context
* Settings should be encapsulated in the module, instead of being exposed as static class props
* `currentRefreshMenuInstanceDebouncedCalls` should be encapsulated and renamed, instead of being the longest symbol in the entire codebase
See #32911 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33345 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-21 16:13:36 +00:00
Scott Taylor
47036da32b
Revert [32466], I will pick this up in 4.4.
...
See #32466 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33342 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-21 15:09:28 +00:00
Ella Iseulde Van Dorpe
6da15e0528
TinyMCE: views: make sure gallery captions update
...
Part props dmsnell.
Fixes #32779 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33338 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-20 23:55:46 +00:00
Ella Iseulde Van Dorpe
8768541ce5
JSHint: don't redeclare globals listed in .jshintrc
...
See #33021 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33337 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-20 23:38:17 +00:00
Konstantin Obenland
8ea9ecdeb1
Toolbar: Restore scroll-to-top functionality.
...
H/t Ipstenu.
Introduced in [33056].
See #29906 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33334 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-20 20:01:34 +00:00
Konstantin Obenland
9fe59ced57
Site Icon: Add crop preview to the media modal.
...
* Monkey patches imgAreaSelect library to support touch events.
* Removes Settings version of Site Icon since it would have been the same flow.
* Removes default value for Customizer setting - there is no default favicon.
Fixes #16434 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33329 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-20 15:56:19 +00:00
Weston Ruter
4ff443dd11
Customizer: Fix previewing certain changes to nav menus.
...
Addresses regression introduced in [33138], where deleted menu items would not be removed from the preview, and changes to a location's assigned menu would likewise not preview. Also makes the binding of the setting change events more robust.
Fixes #33010 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33328 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-20 07:44:00 +00:00
Andrew Nacin
a22368a225
JSHint: Use 'global' rather than 'globals' for inline configuration.
...
Don't declare a global already listed in .jshintrc.
props johnjamesjacoby.
fixes #33021 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33324 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-19 17:08:47 +00:00
Ella Iseulde Van Dorpe
795b2211fb
TinyMCE: inline toolbar: fix memory leaks
...
Part props ungestaltbar.
Fixes #32873 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33294 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-16 11:10:28 +00:00
Scott Taylor
b762b7da92
Monkey patch MediaElement to include a PR that restores responsive videos in Firefox:
...
https://github.com/johndyer/mediaelement/pull/1531
Props joemcgill.
Fixes #32722 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33267 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-14 16:29:37 +00:00
Drew Jaynes
5df16d63ac
Re-add parameter names to the add() DocBlock in wptextpattern accidentally replaced only with descriptions in [33200].
...
Props iseulde.
See #32891 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33205 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 18:08:48 +00:00
Drew Jaynes
9f10dd65fb
Add a true return description to the test() method added to wpEmoji in 4.3.
...
See [32335]. See #32891 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33203 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 17:58:36 +00:00
Drew Jaynes
b1a3776a86
Minor documentation fixes for the wp.a11y.speak() and addContainer() DocBlocks.
...
See [33000]. See #32891 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33201 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 17:57:01 +00:00
Drew Jaynes
5b766e2082
Add true descriptions to parameters for the add() method for wptextpattern, added in 4.3.
...
See [32703]. See #32891 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33200 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 17:54:42 +00:00
Andrew Ozz
b780b94487
TinyMCE, shortcuts help popup: do not use translatable strings for the keys.
...
See #31441 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33170 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-11 22:36:58 +00:00
Konstantin Obenland
68cd0bc870
Site Icon: Add Customizer UI.
...
Second part of the Site Icon feature after [32994] introduced it for Settings.
Props celloexpressions.
See #16434 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33154 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-10 21:32:23 +00:00
Andrew Ozz
128557239f
TinyMCE: when deleting an image, ensure the wrapping link (if any) is deleted too. Fixes the erroneous showing of the link toolbar after deleting an image. Also small readability fix.
...
See #32604 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33141 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-09 00:24:34 +00:00
Weston Ruter
2a8973f117
Customizer: Remove additional wrapper element around wp_nav_menu() which broke some theme designs.
...
Also includes these related changes:
* Export `oldContainer` and `newContainer` among the `customize-preview-menu-refreshed` event params for themes to be able to more easily re-initialize the DOM elements.
* Improve performance for partial refresh by only sending settings related to the menu being previewed.
* Fix previewing of menu assigned to Custom Menu by exporting a menu `term_id` as opposed to an object, as the former is more stable for comparing in in args hashes.
* Do full refresh of preview when nav menu unassigned so that the layout can be updated.
* Harden conditions for when partial refresh is eligible for a `wp_nav_menu()` instance.
Fixes #32841 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33138 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 21:29:53 +00:00
Weston Ruter
ccbd855021
Customizer: Defer listening to nav menu setting changes until active.
...
Defer the preview starting to listen to setting changes until after the Customizer has synced settings into the preview. This ensures that any differences between the JS and PHP representations of the settings won't cause an infinite refresh.
See #32911 .
Fixes #32894 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33134 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 20:41:18 +00:00