Commit Graph

880 Commits

Author SHA1 Message Date
Andrew Ozz
8737968ac2 TinyMCE: update to 4.1.10.
Fixes #32262.

git-svn-id: https://develop.svn.wordpress.org/trunk@32366 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-06 03:22:04 +00:00
Andrew Ozz
717ea3f7cd Emoji: add shorter/faster regex for testing for emoji chars in added nodes.
See #32125.

git-svn-id: https://develop.svn.wordpress.org/trunk@32347 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-05 01:40:21 +00:00
Andrew Ozz
49626f348a Emoji: rename the exclude class to wp-exclude-emoji.
Props Clorith. See #32197.

git-svn-id: https://develop.svn.wordpress.org/trunk@32337 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-04 00:04:15 +00:00
Andrew Ozz
992cc2e796 Emoji: add an exclude class to wp-emoji checked when monitoring for changes with mutationObserver. Use it for the hidden div used for resizing the Text editor.
See #32197.

git-svn-id: https://develop.svn.wordpress.org/trunk@32336 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-03 20:17:38 +00:00
Andrew Ozz
6368ee0c6a Emoji: before parsing added nodes test if the text in them contains emoji chars. That speeds up the processing quite a bit.
See #32125.

git-svn-id: https://develop.svn.wordpress.org/trunk@32335 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-03 19:07:31 +00:00
Andrew Ozz
9c3c452fa9 Emoji:
- Fix loading errors in IE9 and IE10.
- Add fallbacks for the loading events.
Fixes #32109 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@32334 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-03 18:44:37 +00:00
Scott Taylor
625e7135f3 After [32258], restore the parts of [31620] and [31626] that weren't changes to the UI, but were improvements to existing code.
* Use `wp.shortcode()` instead of manually constructing a shortcode in `views/embed/link`
* In `WP_Embed`, store the last URL and last set of attributes requested in class properties
* `wp_ajax_parse_embed()`, allow `[embed]`s to have attributes. Return `attr` in the response.

See #31139.


git-svn-id: https://develop.svn.wordpress.org/trunk@32330 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-30 21:39:52 +00:00
Andrew Ozz
f31aeb97f1 Emoji: fix loop when replacement images fail to load.
Props iseulde. Fixes #32128 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@32323 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-29 03:19:01 +00:00
Andrew Nacin
29718f1c28 Fix keyboard shortcut for save from the visual editor.
props iseulde.
see #32122, for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@32295 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-26 04:50:41 +00:00
Andrew Ozz
925682e2d1 Revert editing of video embed parameters in the media modal, [31620] and [31626] for now. Plan on revisiting in 4.3.
Props iseulde. Fixes #31139, fixes #32006.

git-svn-id: https://develop.svn.wordpress.org/trunk@32258 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-21 22:40:23 +00:00
Andrew Ozz
312edcbc9d TinyMCE wpView: properly deselect views when hiding the editor. Do not remove selected on PreProcess.
Fixes #32045.

git-svn-id: https://develop.svn.wordpress.org/trunk@32257 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-21 21:31:26 +00:00
Andrew Ozz
89dee9f379 TinyMCE wpView: ensure contentNode is passed to all callbacks.
Props iseulde. Fixes #31669.

git-svn-id: https://develop.svn.wordpress.org/trunk@32255 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-21 18:35:50 +00:00
Helen Hou-Sandi
345397aafb Avoid a PHP notice when adding an embed via Insert from URL.
props iseulde.
see #32006, #29476.


git-svn-id: https://develop.svn.wordpress.org/trunk@32247 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-21 14:35:40 +00:00
Helen Hou-Sandi
5ff0ea1fcf wpLink: Make the text editor experience the same as in the visual editor.
props azaozz.
fixes #31890.


git-svn-id: https://develop.svn.wordpress.org/trunk@32242 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-21 13:58:09 +00:00
Andrew Ozz
10bf8967d2 TinyMCE: fix creating a preview when pasting an embeddable URL in Firefox.
Part prop iseulde. Fixes #31988.

git-svn-id: https://develop.svn.wordpress.org/trunk@32229 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-20 20:56:10 +00:00
Helen Hou-Sandi
f846003ea7 Media: Date filtering does not need to be on for all contexts.
Affected areas include customizer upload controls and video playlist editing.

props ocean90.
fixes #32004.


git-svn-id: https://develop.svn.wordpress.org/trunk@32228 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-20 19:48:08 +00:00
Gary Pendergast
99927c319e Update the Plupload Flash file to the latest version.
Props azaozz.



git-svn-id: https://develop.svn.wordpress.org/trunk@32168 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-20 06:12:11 +00:00
Andrew Ozz
b7817247c5 TinyMCE: use window.twemoji directly in the wpemoji plugin. Gives a chance to the browser to lazy load twemoji.js when reloading the page.
Fixes #31901.

git-svn-id: https://develop.svn.wordpress.org/trunk@32142 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-18 23:28:11 +00:00
Andrew Ozz
ab5685e6ad TinyMCE: remove the empty paragraph that sometimes is left over after adding an image caption.
Fixes #32003.

git-svn-id: https://develop.svn.wordpress.org/trunk@32141 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-18 21:55:45 +00:00
Andrew Ozz
9781cdb9a3 TinyMCE wpView:
- Remove selected views when inserting content but not when loading all content.
- Remove the ref. to the selected view node on resetting the views.
Fixes #31998.

git-svn-id: https://develop.svn.wordpress.org/trunk@32140 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-18 20:47:04 +00:00
Scott Taylor
91143924cd Move the built media JS files up a directory to their previous location and naming convention. This fidgets with part of [31373] and will maintain BC for those who were loading those files directly (not using the enqueue system).
Props iseulde, ocean90.
Fixes #31912.


git-svn-id: https://develop.svn.wordpress.org/trunk@32125 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-14 15:30:16 +00:00
Helen Hou-Sandi
84c5474197 Media: Bring back spinners, now without bouncing select elements.
props afercia for the initial patch.
see #22839, #30725.


git-svn-id: https://develop.svn.wordpress.org/trunk@32101 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-09 20:34:10 +00:00
Andrew Ozz
01da3522f6 TinyMCE: disable the wp-autoresize plugin in iOS. All iframes there are already expanded to the height of the content document.
Fixes #31937.

git-svn-id: https://develop.svn.wordpress.org/trunk@32095 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-09 00:10:23 +00:00
Dominik Schilling (ocean90)
1ad5acb6a1 Merge strings that describe the same command.
props iseulde.
fixes #31776.

git-svn-id: https://develop.svn.wordpress.org/trunk@32078 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 16:58:13 +00:00
Helen Hou-Sandi
34ebf98f36 Toolbar: Search item consistency for focus state and IE8.
props afercia.
fixes #31322.


git-svn-id: https://develop.svn.wordpress.org/trunk@32074 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 16:07:51 +00:00
Aaron Jorbin
5f56394da3 Don't reference underscore.js source map
We don't bundle the source map, so we shouldn't reference it.  This prevents a 404.

Props ocean90
See #31477



git-svn-id: https://develop.svn.wordpress.org/trunk@32065 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-07 04:34:44 +00:00
Andrew Ozz
9c92833a1c TinyMCE: update the "Keyboard Shortcuts" modal.
Fixes #29558.

git-svn-id: https://develop.svn.wordpress.org/trunk@32060 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-06 23:16:59 +00:00
Andrew Ozz
d9fe0232fb TinyMCE: fix our shortcuts on Mac, use Ctrl + Opt + letter.
Props iseulde. See #29558.

git-svn-id: https://develop.svn.wordpress.org/trunk@32059 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-06 22:50:28 +00:00
Andrew Ozz
2edb7aace9 TinyMCE: update to 4.1.9+. Changes:
- Fixed bug where extra empty paragraphs would get deleted in WebKit/Blink due to recent Quriks fix.
- Fixed bug where the editor wouldn't work properly on IE 12 due to some required browser sniffing.
- Fixed bug where formatting shortcut keys where interfering with Mac OS X screenshot keys.
Fixes #31895.

git-svn-id: https://develop.svn.wordpress.org/trunk@32058 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-06 20:37:38 +00:00
Andrew Ozz
e28afd4f46 TinyMCE wpView: resize sandbox iframes on load. Fixes a problem with resizing after all images are loaded.
Props iseulde, mattheu. Fixes #31480.

git-svn-id: https://develop.svn.wordpress.org/trunk@32056 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-06 18:54:22 +00:00
Helen Hou-Sandi
2f368bf396 Insert from URL: Make sure the link text is actually used.
Turns out there were more pieces to renaming the field.

props iseulde.
fixes #29476.


git-svn-id: https://develop.svn.wordpress.org/trunk@32055 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-06 18:24:53 +00:00
Helen Hou-Sandi
f64bf71719 Update more instances of default admin blues and grays.
props hugobaeta.
fixes #31234.


git-svn-id: https://develop.svn.wordpress.org/trunk@32051 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-05 21:19:54 +00:00
Gary Pendergast
b0c3d0e7c2 Emoji: Remove an errant / in Twemoji URLs.
Props tmatsuur.

Fixes #31893.



git-svn-id: https://develop.svn.wordpress.org/trunk@32024 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-05 07:27:20 +00:00
Andrew Ozz
3265aad744 TinyMCE wpView:
- Fix editor undo levels.
- Remove views and markers in the DOM before serialization.
- Unbind views before removing them on hide.
- Empty the content in the timeout, so it doesn't render iframes twice.
Props iseulde. Fixes #31669.

git-svn-id: https://develop.svn.wordpress.org/trunk@32022 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 22:59:07 +00:00
Helen Hou-Sandi
6983294161 Spinners: Toggle a class instead of show/hide.
Toggling spinners also now uses visibility instead of display, so that the space is always reserved and nothing moves around unexpectedly.

props cdog, MikeHansenMe, valendesigns.
fixes #22839. see #31875, #30725.


git-svn-id: https://develop.svn.wordpress.org/trunk@31996 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-03 04:51:18 +00:00
Andrew Ozz
e5d660e597 TinyMCE: always focus the editor after using the floated toolbar.
Props iseulde. Fixes #30619.

git-svn-id: https://develop.svn.wordpress.org/trunk@31972 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 21:49:03 +00:00
Scott Taylor
45dfe8815f Remove the JS part of [31619].
Fixes #6820.


git-svn-id: https://develop.svn.wordpress.org/trunk@31960 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 16:33:32 +00:00
Scott Taylor
bbfabf7fb5 When editing an image from the editor, and the image has a value for alignment (but not for width or caption), don't bail without first checking that the alignment's value is not alignnone. If so, add the class to the <a> before bailing.
See #21848.


git-svn-id: https://develop.svn.wordpress.org/trunk@31958 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 16:03:36 +00:00
Andrew Ozz
235b83b4c0 Emoji:
- Enhance twemoji.js to support passing of additional attributes for the replacement images.
- Use that to add the needed attributes when replacing emoji inside the editor.
Fixes #31627.

git-svn-id: https://develop.svn.wordpress.org/trunk@31948 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 02:38:25 +00:00
Andrew Ozz
29093fe8dc TinyMCE emoji: fix caret position after replacing emoji in Chrome on Windows 8.
See #31627.

git-svn-id: https://develop.svn.wordpress.org/trunk@31946 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-31 23:34:23 +00:00
Dominik Schilling (ocean90)
d66ac05792 Disable body scrolling when session expired log in modal is open.
Fixes also the missing close icon if screen width is less than 380px.

props adamsilverstein, ocean90.
fixes #31610.

git-svn-id: https://develop.svn.wordpress.org/trunk@31945 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-31 22:54:40 +00:00
Scott Taylor
71557177db Let us pray to the gods of backwards compatibility:
* The way that the JS modules for media are currently set up turns the existing global `wp.media` namespace into a read-only API, this is bad.
* For the existing module implementation to work with plugins, those looking to override or extend a class would have to modify their own plugin to use `browserify` - we can't expect this to happen
* Because the general way that plugins override media classes is via machete (resetting them to something else), we cannot use `require( 'module' )` in the internal code for media modules

We CAN continue to use `require( 'fun/js' )` in the manifests for media. 

Future code/projects should carefully consider what is made to be public API. In 3.5, EVERYTHING was made public, so everything shall remain public.

See #31684, #28510.


git-svn-id: https://develop.svn.wordpress.org/trunk@31935 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-31 02:02:35 +00:00
Andrew Ozz
ae1538daed TinyMCE wpView: add back the removal of selected views on inserting new content. Was removed when reverting the first fix for embedding of pasted URLs.
Props mattheu. Fixes #31796.

git-svn-id: https://develop.svn.wordpress.org/trunk@31931 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-30 18:21:56 +00:00
Andrew Ozz
c932690b40 Remove unused vars. See #31627.
git-svn-id: https://develop.svn.wordpress.org/trunk@31923 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-30 02:49:23 +00:00
Andrew Ozz
867237ca49 TinyMCE emoji: catch the inserting of emoji chars with the Windows 8 onscreen keyboard and replace if needed.
Fixes #31627.

git-svn-id: https://develop.svn.wordpress.org/trunk@31922 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-30 02:38:26 +00:00
Andrew Ozz
2c2a69c2a7 Fix initialization of wp-emoji in IE8.
Props pento, azaozz. Fixes #31701.

git-svn-id: https://develop.svn.wordpress.org/trunk@31898 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 02:39:46 +00:00
Dominik Schilling (ocean90)
e1353e1fe8 Customizer: [31885] actually hasn't fixed the SecurityErrors. This one does.
props mattwiebe.
fixes #31687.

git-svn-id: https://develop.svn.wordpress.org/trunk@31893 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 23:35:37 +00:00
Andrew Ozz
e12762a76c TinyMCE: make sure the editor is not completely empty before checking if the user clicked above or below a wpView.
Fixes #31765.

git-svn-id: https://develop.svn.wordpress.org/trunk@31888 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 18:54:22 +00:00
Dominik Schilling (ocean90)
7a5073020d Customizer: Avoid SecurityErrors when the Customizer is embedded in an origin other than wp-admin.
props mattwiebe.
fixes #31687.

git-svn-id: https://develop.svn.wordpress.org/trunk@31885 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 17:25:01 +00:00
Andrew Ozz
f6e1aeee60 TinyMCE: pad empty paragraphs with <br> in Chrome to stop it from inserting non-breaking spaces in them.
Props iseulde. Fixes #31255.

git-svn-id: https://develop.svn.wordpress.org/trunk@31878 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 01:17:04 +00:00