Andrew Ozz
0c2b137a60
TinyMCE: fix black outline around _moz_abspos
. This is added in Firefox in paragraphs inserted after a non-editable block.
...
See #38757 .
Built from https://develop.svn.wordpress.org/trunk@39217
git-svn-id: http://core.svn.wordpress.org/trunk@39157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-14 02:34:31 +00:00
Andrew Ozz
5e8f67540e
TinyMCE: fix freezing the editor when wpautop is disabled and a paragraph starts with a lot of white space characters.
...
Fixes #38294 .
Built from https://develop.svn.wordpress.org/trunk@39204
git-svn-id: http://core.svn.wordpress.org/trunk@39144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-11 23:07:29 +00:00
Ella Iseulde Van Dorpe
c1ff206bac
TinyMCE: wptextpattern: Fix inline patterns.
...
* Allow spaces inside inline pattern text, unless the delimiter stands alone.
* Add more unit tests.
* Add more inline docs.
Part props azaozz.
Fixes #37693 .
Built from https://develop.svn.wordpress.org/trunk@39150
git-svn-id: http://core.svn.wordpress.org/trunk@39090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-06 23:38:33 +00:00
Aaron Jorbin
32be6f7bb7
Bump grunt-contrib-uglify from 1.0.1 to 2.0.0
...
Sets `screwIE8` to false as it is now enabled by default
Files Changed:
build/wp-admin/js/customize-nav-menus.min.js
build/wp-admin/js/customize-widgets.min.js
build/wp-includes/js/customize-loader.min.js
Changelog:
2016-07-19 v2.0.0 Update uglify-js to v2.7.0. screwIE8 is enabled by default.
2016-07-19 v1.0.2 Update grunt to ^1.0.0. Fix beautify when passed as an object. Fix docs about report values.
See #38199 .
Built from https://develop.svn.wordpress.org/trunk@39117
git-svn-id: http://core.svn.wordpress.org/trunk@39059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-03 05:40:34 +00:00
Ella Iseulde Van Dorpe
feb8ccf3d6
TinyMCE: wptextpattern: Fix undo shortcut for inline patterns
...
Fixes #37092 .
Built from https://develop.svn.wordpress.org/trunk@39077
git-svn-id: http://core.svn.wordpress.org/trunk@39019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-01 20:34:32 +00:00
Ella Iseulde Van Dorpe
84c108db02
TinyMCE: wptextpattern: Handle unconverted inline patterns
...
Make sure the right text is matched when it already contains characters of the pattern.
Adds two more unit tests.
Fixes #37693 .
Built from https://develop.svn.wordpress.org/trunk@39075
git-svn-id: http://core.svn.wordpress.org/trunk@39017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-01 20:06:36 +00:00
Andrew Ozz
3807829ac4
TinyMCE: if the current editor configuration is without toolbars, prevent errors when adding the labels for custom shortcuts.
...
Fixes #38063 .
Built from https://develop.svn.wordpress.org/trunk@38997
git-svn-id: http://core.svn.wordpress.org/trunk@38939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-28 20:07:32 +00:00
Andrew Ozz
11e7d3d250
TinyMCE: revert removing the numbers (2-6) after the headings in the drop-down. Seems it causes more confusion.
...
See #27159 .
Built from https://develop.svn.wordpress.org/trunk@38946
git-svn-id: http://core.svn.wordpress.org/trunk@38889 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-26 06:16:30 +00:00
Andrew Ozz
ed2e427b9d
TinyMCE: remove the numbers (2-6) after the headings in the drop-down. These are previews for the actual styling of headings in the editor.
...
See #27159 .
Built from https://develop.svn.wordpress.org/trunk@38939
git-svn-id: http://core.svn.wordpress.org/trunk@38882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-26 01:42:48 +00:00
Andrew Ozz
913926c1bd
TinyMCE: make keyboard shortcuts more discoverable by adding them to the buttons tooltips and in the Formats drop-down.
...
Props mor10, azaozz.
Fixes #38063 .
Built from https://develop.svn.wordpress.org/trunk@38897
git-svn-id: http://core.svn.wordpress.org/trunk@38840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-25 01:40:31 +00:00
Andrew Ozz
1a7a00d14f
TinyMCE: change the icon and tooltip for the remove link button in the inline link toolbar.
...
Props hardeepasrani, ocean90, magicroundabout, iseulde.
Fixes 37278.
Built from https://develop.svn.wordpress.org/trunk@38891
git-svn-id: http://core.svn.wordpress.org/trunk@38834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-24 21:59:22 +00:00
Andrew Ozz
e2e22580db
TinyMCE:
...
- Prevent applying Indent and Outdent while an image with a caption is selected. It doesn't do anything and breaks the caption elements.
- Keep all of the text when a caption `<dl>` was somehow changed.
Fixes #38313 .
Built from https://develop.svn.wordpress.org/trunk@38796
git-svn-id: http://core.svn.wordpress.org/trunk@38739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-14 21:38:28 +00:00
Andrew Ozz
5f5c85c510
TinyMCE: prevent iOS Safari from expanding the iframe width beyond the container width.
...
Fixes #38289 .
Built from https://develop.svn.wordpress.org/trunk@38782
git-svn-id: http://core.svn.wordpress.org/trunk@38725 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-12 03:36:30 +00:00
Andrew Ozz
61c95f84f6
TinyMCE: update the charmap
plugin to the latest dev. version. Fixes problems with inserting white space characters.
...
Fixes #37936 .
Built from https://develop.svn.wordpress.org/trunk@38780
git-svn-id: http://core.svn.wordpress.org/trunk@38723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-11 23:56:31 +00:00
Andrew Ozz
cb966db094
TiinyMCE: update to 4.4.3, changelog: https://www.tinymce.com/docs/changelog/#version443-september12016
...
Fixes #38081 , #38245 , #37507 , #37808 and #38000 .
Built from https://develop.svn.wordpress.org/trunk@38773
git-svn-id: http://core.svn.wordpress.org/trunk@38716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-11 00:10:32 +00:00
Andrew Ozz
470c5a1f2a
TinyMCE: Allow pasting in image captions. Remove blocks and insert <br>
tags instead, also remove elements that would break the caption like other images, video, audio, etc.
...
See #36211 .
Built from https://develop.svn.wordpress.org/trunk@38756
git-svn-id: http://core.svn.wordpress.org/trunk@38699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-07 21:41:29 +00:00
Andrew Ozz
2b0e81c595
TinyMCE: change the default font for the vi
locale to the same stack as he_IL
.
...
Props nmt90 for reporting and testing this.
Fixes #37755 for trunk.
Built from https://develop.svn.wordpress.org/trunk@38427
git-svn-id: http://core.svn.wordpress.org/trunk@38368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-28 18:52:41 +00:00
Andrew Ozz
08d59c211c
TinyMCE: make sure the temporary id is removed when using the default image dialog and inserting an external image.
...
Props fomenkoandrey for reporting and testing.
Fixes #37467 .
Built from https://develop.svn.wordpress.org/trunk@38328
git-svn-id: http://core.svn.wordpress.org/trunk@38269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-23 04:43:31 +00:00
Andrew Ozz
37018fded6
TinyMCE: fix the calculation for the inline toolbar vertical position.
...
Fixes #37481 .
Built from https://develop.svn.wordpress.org/trunk@38160
git-svn-id: http://core.svn.wordpress.org/trunk@38101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-27 02:59:31 +00:00
Andrew Ozz
5bccb0020d
TinyMCE, inline link:
...
- Remove proxying through WordPress to test if an URL exists.
- Fix and enhance the regex that tests if the URL is well formed.
Fixes #36638 .
Built from https://develop.svn.wordpress.org/trunk@38159
git-svn-id: http://core.svn.wordpress.org/trunk@38100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-26 23:24:28 +00:00
Andrew Ozz
101545cbb5
TinyMCE, wpView:
...
- Add the `wpview-wrap` class and pass third param to the getNodes() callback for back-compat.
- Attach the mutation observer that resizes a view iframe inside the iframe to minimize memory use/leaks.
- Remove the `wp-mce-view-unbind` event. It has never been particularly reliable and now it doesn't fire when the user deletes a view by typing or pasting over it.
- Restore changing of a view iframe body classes when the editor body classes change.
Props iseulde, azaozz.
Fixes #36434 .
Built from https://develop.svn.wordpress.org/trunk@38158
git-svn-id: http://core.svn.wordpress.org/trunk@38099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-26 23:13:28 +00:00
Andrew Ozz
b86015e78b
TinyMCE: fix selecting an image on touch in iOS Safari for TinyMCE 4.4.1.
...
Fixes #37427 .
Built from https://develop.svn.wordpress.org/trunk@38156
git-svn-id: http://core.svn.wordpress.org/trunk@38097 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-26 21:51:27 +00:00
Andrew Ozz
fd29d3e3a3
TinyMCE: upgrade to 4.4.1, changelog: https://www.tinymce.com/docs/changelog/#version441-july262016 .
...
See #37427 .
Fixes #37476 .
Built from https://develop.svn.wordpress.org/trunk@38155
git-svn-id: http://core.svn.wordpress.org/trunk@38096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-26 21:47:28 +00:00
Helen Hou-Sandí
6d28c85bc7
System fonts: Don't quote single-word font names, per our coding standards.
...
props ocean90, netweb.
see #36753 .
Built from https://develop.svn.wordpress.org/trunk@38152
git-svn-id: http://core.svn.wordpress.org/trunk@38093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-26 16:39:30 +00:00
Andrew Ozz
04319a7898
TinyMCE, link check:
...
- Use `wp.a11y.speak()` to announce bad URLs.
- Do not add a title to the link toolbar.
- Better error message.
Props afercia, azaozz.
See #36638 .
Built from https://develop.svn.wordpress.org/trunk@38126
git-svn-id: http://core.svn.wordpress.org/trunk@38067 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-21 03:42:34 +00:00
Andrew Ozz
ba81f46c64
TinyMCE: replace the editor iframe title on MacOS to fix the help shortcut.
...
Props afercia, azaozz.
Fixes #36863 .
Built from https://develop.svn.wordpress.org/trunk@38110
git-svn-id: http://core.svn.wordpress.org/trunk@38051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-20 01:39:31 +00:00
Andrew Ozz
532e8f0204
TinyMCE: preserve <script>
and <style>
tags inside the editor.
...
Uses image placeholders for the tags and makes then visible. That way the tags can also be deleted from inside the editor.
Props iseulde, azaozz.
Fixes #32923 .
Built from https://develop.svn.wordpress.org/trunk@38039
git-svn-id: http://core.svn.wordpress.org/trunk@37980 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-12 22:09:31 +00:00
Andrew Ozz
70fa27a953
TinyMCE: update to 4.4.0, changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt . Includes two bugfixes for #36434 .
...
Fixes #37327 .
Built from https://develop.svn.wordpress.org/trunk@38034
git-svn-id: http://core.svn.wordpress.org/trunk@37975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-12 00:20:29 +00:00
Andrew Ozz
21ae71eaa1
TinyMCE: do not trigger execCommand
on loading, it focuses the editor in Chrome.
...
Fixes #37243 .
Built from https://develop.svn.wordpress.org/trunk@37927
git-svn-id: http://core.svn.wordpress.org/trunk@37868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-30 15:18:27 +00:00
Andrew Ozz
397376d5a1
TinyMCE: update to 4.3.13, changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt .
...
Fixes #37225 .
Built from https://develop.svn.wordpress.org/trunk@37910
git-svn-id: http://core.svn.wordpress.org/trunk@37851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-29 13:21:27 +00:00
Andrew Ozz
c4af09a2b9
TinyMCE, inline link dialog:
...
- Reset the internal state when doing `unlink`, pressing `Escape`, and clicking elsewhere in the editor.
- Add the unlink shortcut from the wplink plugin as it triggers the new `wp_unlink` command.
Fixes #36781 , #36732 , #37153 .
Built from https://develop.svn.wordpress.org/trunk@37906
git-svn-id: http://core.svn.wordpress.org/trunk@37847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-29 09:42:30 +00:00
Andrew Ozz
07cef1ce62
Editor, link checker:
...
- Add white outline for contrast on darker backgrounds.
- Change red colour in toolbar.
Props iseulde. Props rockwell15 for the initial patch.
See #36638 .
Built from https://develop.svn.wordpress.org/trunk@37751
git-svn-id: http://core.svn.wordpress.org/trunk@37716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-19 13:01:28 +00:00
Andrew Ozz
accf240d37
Editor: after inserting a link detect if the URL is broken, first run.
...
Props iseulde, azaozz.
See #36638 .
Built from https://develop.svn.wordpress.org/trunk@37741
git-svn-id: http://core.svn.wordpress.org/trunk@37706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-17 20:41:28 +00:00
Ella Iseulde Van Dorpe
3644501228
TinyMCE: wptextpattern: fix for fast typing
...
Props jnylen0, iseulde.
Fixes #36585 .
Built from https://develop.svn.wordpress.org/trunk@37668
git-svn-id: http://core.svn.wordpress.org/trunk@37634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-09 19:07:28 +00:00
Gary Pendergast
44c1f82df3
Editor: 'undefined' !== 'undefiend'
...
Fix a typo in [37630].
See #36662 .
Built from https://develop.svn.wordpress.org/trunk@37632
git-svn-id: http://core.svn.wordpress.org/trunk@37600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-03 04:54:27 +00:00
Andrew Ozz
5e5aa1a69a
Editor: do not use the modal-open
class to determine when the wpLink modal is open. This is a class used in Bootstrap and may be present when wpLink is not open. Store the open/closed state instead.
...
Fixes #36662 .
Built from https://develop.svn.wordpress.org/trunk@37630
git-svn-id: http://core.svn.wordpress.org/trunk@37598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-06-02 23:58:28 +00:00
Andrew Ozz
ba7f3cffc1
TinyMCE: check if wp.mce.views
exists before loading the wpview plugin. Fixes a js error when the rest of the media scripts are not loaded.
...
Fixes #36977 .
Built from https://develop.svn.wordpress.org/trunk@37597
git-svn-id: http://core.svn.wordpress.org/trunk@37565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-05-30 22:05:27 +00:00
Ella Iseulde Van Dorpe
cf51b75834
TinyMCE: fix inline toolbar positioning
...
Introduced in [37000].
See 2fb8aa48e9
.
See 5734a8d880
.
Fixes #36876 .
Built from https://develop.svn.wordpress.org/trunk@37559
git-svn-id: http://core.svn.wordpress.org/trunk@37527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-05-25 15:13:28 +00:00
Ella Iseulde Van Dorpe
6e72bc4ec5
TinyMCE: use new non-editable implementation
...
Use TinyMCE's implementation of `contenteditable="false"` for views.
First pass.
See #36434 .
Built from https://develop.svn.wordpress.org/trunk@37446
git-svn-id: http://core.svn.wordpress.org/trunk@37414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-05-17 18:49:30 +00:00
Helen Hou-Sandí
a800cf654b
Drop Open Sans in the admin in favor of system fonts.
...
Rejoice, for your admins will feel more native to your surrounding computing environment and likely load faster, especially when offline, as they no longer have to talk to The Google Overlord.
At the time of introduction in 3.8, there were not good system fonts common to all platforms at the time. In the years since, Windows, Android, OS X, iOS, Firefox OS, and various flavors of Linux have all gotten their own (good) system UI fonts.
There will definitely be visual bugs, mainly around alignment and spacing; these should be documented and reported on the ticket and fixed more atomically so that our current and future selves have a better understanding of what happened and why.
The style remains registered, as it is almost certainly in use by themes and plugins.
props mattmiklic.
see #36753 .
Built from https://develop.svn.wordpress.org/trunk@37361
git-svn-id: http://core.svn.wordpress.org/trunk@37327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-05-04 22:07:37 +00:00
Andrew Ozz
59d388038e
TinyMCE: prevent showing the placeholder URL when adding a link and clicking more than once on the Insert Link button.
...
Props iseulde.
Fixes #36637 for trunk.
Built from https://develop.svn.wordpress.org/trunk@37301
git-svn-id: http://core.svn.wordpress.org/trunk@37267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-22 19:11:28 +00:00
Andrew Ozz
5dcf90c069
TinyMCE: backport fixes for 4.3.10:
...
- Conflict with typing the Euro sign on Windows: 5462e3c1dd
- opy/paste typo in the textcolor plugin: 1fc5a733e9
See #36545 , for trunk.
Built from https://develop.svn.wordpress.org/trunk@37251
git-svn-id: http://core.svn.wordpress.org/trunk@37217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-19 23:01:27 +00:00
Andrew Ozz
7e5dcdb1aa
TinyMCE: update to 4.3.10, changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt . Fixes #36545 for trunk.
...
Built from https://develop.svn.wordpress.org/trunk@37242
git-svn-id: http://core.svn.wordpress.org/trunk@37208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-18 21:46:29 +00:00
Pascal Birchler
5cbdf22c0f
TinyMCE, inline link: Fix VoiceOver in Safari for search suggestions.
...
Props afercia.
Fixes #36458 .
Built from https://develop.svn.wordpress.org/trunk@37228
git-svn-id: http://core.svn.wordpress.org/trunk@37194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-17 11:09:28 +00:00
Aaron Jorbin
262f3f2f7e
Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1
...
This changes every JS file in WordPress, so we need to test everything.
Props netweb.
See #36520 .
Built from https://develop.svn.wordpress.org/trunk@37212
git-svn-id: http://core.svn.wordpress.org/trunk@37178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-15 16:10:37 +00:00
Dominik Schilling
12599ea170
TinyMCE, inline link: Make styles for the autocomplete results available on front end.
...
Also, replace the generic `.alignright` class with a more specific class to avoid styling issues with themes which have padding/margin attached to `.alignright`.
Props azaozz, imath.
Fixes #36461 .
Built from https://develop.svn.wordpress.org/trunk@37174
git-svn-id: http://core.svn.wordpress.org/trunk@37141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-11 15:12:29 +00:00
Andrew Ozz
a97d39785a
TinyMCE: include the upstream fix for inserting <hr>
while the caret is in an inline element: b1618d1adb
.
...
Fixes #36165 .
Built from https://develop.svn.wordpress.org/trunk@37074
git-svn-id: http://core.svn.wordpress.org/trunk@37041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-23 21:45:28 +00:00
Andrew Ozz
cb0565b33a
TinyMCE: after discussion in Slack https://wordpress.slack.com/archives/core/p1458164584000700
...
- Remove `***` and `___` text pattern and support for spaces in `---`. The only `<hr>` text pattern is 3 or more dashes, no spaces.
- Remove the `*`, `**`, `_`, and `__` text patterns for bold and italic.
Fixes #33300 ;
Built from https://develop.svn.wordpress.org/trunk@37023
git-svn-id: http://core.svn.wordpress.org/trunk@36990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-16 23:00:28 +00:00
Andrew Ozz
571cf91329
TinyMCE, inline link:
...
- Remove bottom box-shadow from the Apply button so it matches the rest.
- Change the tooltip for the cogwheel button to Link options.
See #33301 .
Built from https://develop.svn.wordpress.org/trunk@37001
git-svn-id: http://core.svn.wordpress.org/trunk@36968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-16 02:04:27 +00:00
Andrew Ozz
aa8462c59f
TinyMCE: update to 4.3.8, changelog: https://www.tinymce.com/docs/changelog/#version438-march152016 .
...
Fixes #36254 .
Built from https://develop.svn.wordpress.org/trunk@37000
git-svn-id: http://core.svn.wordpress.org/trunk@36967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-15 21:38:26 +00:00