Dominik Schilling
6b08998219
Editor: Prevent adding javascript:
and data:
URLs through the inline link dialog.
...
Merge of [41393] to the 4.4 branch.
Built from https://develop.svn.wordpress.org/branches/4.4@41404
git-svn-id: http://core.svn.wordpress.org/branches/4.4@41237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-19 10:18:31 +00:00
Ella Iseulde Van Dorpe
72f09b29df
TinyMCE 4.2.8 update
...
Changelog: http://www.tinymce.com/develop/changelog/?ctrl=version&act=view&pr_id=1&vr_id=889
(No plugin, theme, skin or test changes)
Fixes #34671 and #34720 .
Built from https://develop.svn.wordpress.org/trunk@35658
git-svn-id: http://core.svn.wordpress.org/trunk@35622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-17 23:19:01 +00:00
Gary Pendergast
6381e168b7
Pinking Shears: Remove some errant non-breaking spaces from a few JavaScript files.
...
Props francoisb.
Fixes #34658 .
Built from https://develop.svn.wordpress.org/trunk@35627
git-svn-id: http://core.svn.wordpress.org/trunk@35591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-12 12:04:27 +00:00
Andrew Ozz
7e1c68ea78
TinyMCE:
...
- Fix the inline toolbar on images in iOS, move it out of the way so the default inline toolbar is not over it.
- Fix selecting images on touch in the editor (iOS Safari fails to select them most of the time).
Fixes #34557 .
Built from https://develop.svn.wordpress.org/trunk@35607
git-svn-id: http://core.svn.wordpress.org/trunk@35571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-11 03:27:25 +00:00
Andrew Ozz
93fa052e49
TinyMCE: prevent resize handles in newer IE when inserting a wpView.
...
Fixes #29400 .
Built from https://develop.svn.wordpress.org/trunk@35602
git-svn-id: http://core.svn.wordpress.org/trunk@35566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 19:33:26 +00:00
Andrew Ozz
8b3c5fb300
TinyMCE: always remove trailing <br>
added by WebKit browsers to the clipboard.
...
Fixes #34642 .
Built from https://develop.svn.wordpress.org/trunk@35597
git-svn-id: http://core.svn.wordpress.org/trunk@35561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-10 04:32:25 +00:00
Andrew Ozz
42a955a89b
TinyMCE: update the keyboard shortcuts for the link dialog in the wplink
plugin. Fixes Ctrl + Alt + A on MacOS.
...
Fixes #34636 .
Built from https://develop.svn.wordpress.org/trunk@35589
git-svn-id: http://core.svn.wordpress.org/trunk@35553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-09 21:32:28 +00:00
Andrew Ozz
9fb7dcc30d
TinyMCE: update to 4.2.7. Changelog: http://www.tinymce.com/develop/changelog/?ctrl=version&act=view&pr_id=1&vr_id=888
...
Fixes #34620 .
Built from https://develop.svn.wordpress.org/trunk@35574
git-svn-id: http://core.svn.wordpress.org/trunk@35538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-08 02:32:26 +00:00
Scott Taylor
e649fabb6a
Accessibility: add missing alt
attributes to a gaggle of <img>
s.
...
Props afercia.
Fixes #34583 .
Built from https://develop.svn.wordpress.org/trunk@35567
git-svn-id: http://core.svn.wordpress.org/trunk@35531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-07 16:12:27 +00:00
Sergey Biryukov
ae58f104cb
Embeds: Rename TinyMCE wpoembed
plugin to wpembed
.
...
Props swissspidy.
Fixes #34272 .
Built from https://develop.svn.wordpress.org/trunk@35397
git-svn-id: http://core.svn.wordpress.org/trunk@35361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-26 14:50:26 +00:00
Andrew Ozz
3451251548
TinyMCE: update to 4.2.6. Changelog: http://www.tinymce.com/develop/changelog/?ctrl=version&act=view&pr_id=1&vr_id=887 .
...
Fixes #34331 .
Built from https://develop.svn.wordpress.org/trunk@35306
git-svn-id: http://core.svn.wordpress.org/trunk@35272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-20 22:06:24 +00:00
Ella Iseulde Van Dorpe
9845e08340
TinyMCE: Drag and drop link with image
...
Make sure images don't loose their link after drag and drop.
Fixes #28272 .
Built from https://develop.svn.wordpress.org/trunk@35261
git-svn-id: http://core.svn.wordpress.org/trunk@35227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-18 11:05:23 +00:00
Sergey Biryukov
a908d2d4b1
Embeds: Rename files, functions, and hooks added in [34903] to make it more clear what is oEmbed-specific and what isn't.
...
See https://core.trac.wordpress.org/ticket/34272#comment:7 for full list of renamed functions and hooks.
Props swissspidy.
Fixes #34272 .
Built from https://develop.svn.wordpress.org/trunk@35235
git-svn-id: http://core.svn.wordpress.org/trunk@35201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-17 01:21:25 +00:00
Ella Iseulde Van Dorpe
bafdd96ebf
TinyMCE: add lang attribute
...
This is needed to make `hyphens: auto;` work correctly.
Fixes #32555 .
Built from https://develop.svn.wordpress.org/trunk@35217
git-svn-id: http://core.svn.wordpress.org/trunk@35183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-16 10:11:27 +00:00
Ella Iseulde Van Dorpe
3eb4a57c27
TinyMCE: make captioned images draggable
...
See #28003 .
Built from https://develop.svn.wordpress.org/trunk@35199
git-svn-id: http://core.svn.wordpress.org/trunk@35165 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-15 15:20:25 +00:00
Gary Pendergast
83c3e3e00e
Embeds: Add oEmbed provider support.
...
For the past 6 years, WordPress has operated as an oEmbed consumer, allowing users to easily embed content from other sites. By adding oEmbed provider support, this allows any oEmbed consumer to embed posts from WordPress sites.
In addition to creating an oEmbed provider, WordPress' oEmbed consumer code has been enhanced to work with any site that provides oEmbed data (as long as it matches some strict security rules), and provides a preview from within the post editor.
For security, embeds appear within a sandboxed iframe - the iframe content is a template that can be styled or replaced entirely by the theme on the provider site.
Props swissspidy, pento, melchoyce, netweb, pfefferle, johnbillion, extendwings, davidbinda, danielbachhuber, SergeyBiryukov, afercia
Fixes #32522 .
Built from https://develop.svn.wordpress.org/trunk@34903
git-svn-id: http://core.svn.wordpress.org/trunk@34868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-07 10:36:25 +00:00
Andrew Ozz
1b24c98739
TinyMCE: remove word-break: break-word;
from the default editor CSS to prevent irregular spaces when typing in RTL languages.
...
Props iehsanir, alireza1375, ankit-k-gupta.
Fixes #33868 .
Built from https://develop.svn.wordpress.org/trunk@34317
git-svn-id: http://core.svn.wordpress.org/trunk@34281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-18 23:58:26 +00:00
Andrew Ozz
0f3f7160e4
TinyMCE: update to 4.2.5, changelog: http://www.tinymce.com/develop/changelog/?ctrl=version&act=index&pr_id=1 .
...
Fixes #33782 for trunk.
Built from https://develop.svn.wordpress.org/trunk@33981
git-svn-id: http://core.svn.wordpress.org/trunk@33950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-09 19:45:26 +00:00
Andrew Ozz
a231303341
TinyMCE: fix replacing the image caption HTML with the shortcode when saving the content.
...
Fixes #33477 .
Built from https://develop.svn.wordpress.org/trunk@33834
git-svn-id: http://core.svn.wordpress.org/trunk@33802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-31 22:07:21 +00:00
Andrew Ozz
25b0eedf2b
TinyMCE: ensure the wordpress
plugin is loaded before calling _createToolbar()
.
...
Props hauvong, azaozz. Fixes #33393 .
Built from https://develop.svn.wordpress.org/trunk@33728
git-svn-id: http://core.svn.wordpress.org/trunk@33696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-25 04:38:20 +00:00
Konstantin Obenland
dfcf1d0035
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 .
Built from https://develop.svn.wordpress.org/trunk@33622
git-svn-id: http://core.svn.wordpress.org/trunk@33589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-17 14:51:24 +00:00
Ella Iseulde Van Dorpe
718271dd53
TinyMCE: fix inline toolbar repositioning for inline editors
...
Fixes #33286 .
Built from https://develop.svn.wordpress.org/trunk@33592
git-svn-id: http://core.svn.wordpress.org/trunk@33559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-06 21:35:25 +00:00
Ella Iseulde Van Dorpe
34d50e6165
TinyMCE: wplink: fix WPLinkPreview for multiple editors
...
Fixes #33264 .
Built from https://develop.svn.wordpress.org/trunk@33584
git-svn-id: http://core.svn.wordpress.org/trunk@33551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-04 21:42:26 +00:00
Ella Iseulde Van Dorpe
55a4ce4db2
TinyMCE: wptextpattern: trim whitespace
...
Props iseulde and azaozz.
Fixes #33246 .
Built from https://develop.svn.wordpress.org/trunk@33563
git-svn-id: http://core.svn.wordpress.org/trunk@33530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-04 05:01:11 +00:00
Andrew Ozz
63d1389143
TinyMCE: fix initializing the editor on switching Text => Visual when the Text editor is loaded first.
...
Props stuartshields, peterwilsoncc, netweb, azaozz. Fixes #33192 .
Built from https://develop.svn.wordpress.org/trunk@33527
git-svn-id: http://core.svn.wordpress.org/trunk@33494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-02 20:01:26 +00:00
Andrew Ozz
684d54e7a5
TinyMCE: update to 4.2.3, changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt .
...
Fixes #33203 .
Built from https://develop.svn.wordpress.org/trunk@33516
git-svn-id: http://core.svn.wordpress.org/trunk@33483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-30 17:07:26 +00:00
Ella Iseulde Van Dorpe
9a1d80e858
TinyMCE: wptextpattern: stop propagation on undo
...
See #31441 .
Built from https://develop.svn.wordpress.org/trunk@33512
git-svn-id: http://core.svn.wordpress.org/trunk@33479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-29 23:45:25 +00:00
Ella Iseulde Van Dorpe
9069d6679b
TinyMCE: wptextpattern: undo on esc after enter
...
See #31441 .
Built from https://develop.svn.wordpress.org/trunk@33508
git-svn-id: http://core.svn.wordpress.org/trunk@33475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-29 23:12:25 +00:00
Ella Iseulde Van Dorpe
e384cdab45
TinyMCE: wptextpattern: reorder undo
...
After formatting on enter, undo should undo the formatting first, then undo the new line.
See #31441 .
Built from https://develop.svn.wordpress.org/trunk@33507
git-svn-id: http://core.svn.wordpress.org/trunk@33474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-29 22:49:25 +00:00
Andrew Ozz
c96977e083
TinyMCE: fix (again) the text in the keyboard shortcuts modal for the changed patterns.
...
See #31441 .
Built from https://develop.svn.wordpress.org/trunk@33504
git-svn-id: http://core.svn.wordpress.org/trunk@33471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-29 21:54:24 +00:00
Andrew Ozz
c9871174d1
TinyMCE: fix the text in the keyboard shortcuts modal for the changed patterns.
...
See #31441 .
Built from https://develop.svn.wordpress.org/trunk@33501
git-svn-id: http://core.svn.wordpress.org/trunk@33468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-29 21:07:23 +00:00
Ella Iseulde Van Dorpe
926006ea56
TinyMCE: views: correct cursor position after paste
...
Fixes #33174 .
Built from https://develop.svn.wordpress.org/trunk@33484
git-svn-id: http://core.svn.wordpress.org/trunk@33451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-29 13:49:24 +00:00
Ella Iseulde Van Dorpe
a4e751abc7
TinyMCE: iOS: wrap long strings
...
Fixes #33157 .
Built from https://develop.svn.wordpress.org/trunk@33464
git-svn-id: http://core.svn.wordpress.org/trunk@33431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-28 20:32:25 +00:00
Mark Jaquith
0e28880a17
Fill empty TinyMCE paragraphs with a dummy <br />
on all browsers.
...
fixes #33151
props iseulde
Built from https://develop.svn.wordpress.org/trunk@33461
git-svn-id: http://core.svn.wordpress.org/trunk@33428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-28 14:12:25 +00:00
Ella Iseulde Van Dorpe
974c1533ea
TinyMCE: wptextpattern: fix typo and make it faster
...
See #31441 .
Built from https://develop.svn.wordpress.org/trunk@33458
git-svn-id: http://core.svn.wordpress.org/trunk@33425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-28 11:41:25 +00:00
Ella Iseulde Van Dorpe
f78068c152
TinyMCE: wptextpattern: headings on enter
...
Fixes #31441 .
Built from https://develop.svn.wordpress.org/trunk@33452
git-svn-id: http://core.svn.wordpress.org/trunk@33419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-27 23:16:25 +00:00
Andrew Ozz
a92b1d02ae
TinyMCE: remove role=tab from the keyboard shortcuts help dialog.
...
See #33031 .
Built from https://develop.svn.wordpress.org/trunk@33430
git-svn-id: http://core.svn.wordpress.org/trunk@33397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-26 21:37:24 +00:00
Andrew Ozz
170eef2e93
TinyMCE: fix accessibility for the keyboard shortcuts help dialog.
...
Props afercia, azaozz. Fixes #33031 .
Built from https://develop.svn.wordpress.org/trunk@33429
git-svn-id: http://core.svn.wordpress.org/trunk@33396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-26 19:14:26 +00:00
Ella Iseulde Van Dorpe
19dc4bb13a
Revert [31849] and [33351]
...
Also set the max-width of images in themes to 100%, not in pixels.
See #33022 and #31250 .
Built from https://develop.svn.wordpress.org/trunk@33418
git-svn-id: http://core.svn.wordpress.org/trunk@33386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-25 23:00:24 +00:00
Ella Iseulde Van Dorpe
8830708379
Editor: fit images
...
Fixes #31253 .
Built from https://develop.svn.wordpress.org/trunk@33417
git-svn-id: http://core.svn.wordpress.org/trunk@33385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-25 22:44:24 +00:00
Ella Iseulde Van Dorpe
0433e258b9
Editor: add space around aligned images
...
Also increase the font size of captions.
Part props jmichaelward.
Fixes #32176 .
Built from https://develop.svn.wordpress.org/trunk@33415
git-svn-id: http://core.svn.wordpress.org/trunk@33383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-25 13:12:25 +00:00
Andrew Ozz
87aaf3bcfe
TinyMCE: restore support for <script>
tags.
...
See #33083 .
Built from https://develop.svn.wordpress.org/trunk@33414
git-svn-id: http://core.svn.wordpress.org/trunk@33382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-24 22:04:25 +00:00
Andrew Ozz
92395fdd8d
TinyMCE: update to 4.2.2. Changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt .
...
Fixes #33033 , #33042 . See #33083 .
Built from https://develop.svn.wordpress.org/trunk@33369
git-svn-id: http://core.svn.wordpress.org/trunk@33341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-22 21:12:24 +00:00
Andrew Ozz
d8980f96da
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 .
Built from https://develop.svn.wordpress.org/trunk@33351
git-svn-id: http://core.svn.wordpress.org/trunk@33323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-21 22:36:24 +00:00
Ella Iseulde Van Dorpe
24594de8d4
TinyMCE: inline toolbar: fix memory leaks
...
Part props ungestaltbar.
Fixes #32873 .
Built from https://develop.svn.wordpress.org/trunk@33294
git-svn-id: http://core.svn.wordpress.org/trunk@33266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-16 11:11:24 +00:00
Ella Iseulde Van Dorpe
e098c0e9ee
Editor: word count: exclude more characters
...
Also only exclude these characters for the `words` type. They should be counted for other types.
Add the ASCIIOnly option to the uglify config to preserve escaped unicode characters.
See #30966 . Fixes #27391 .
Built from https://develop.svn.wordpress.org/trunk@33292
git-svn-id: http://core.svn.wordpress.org/trunk@33264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-16 09:45:26 +00:00
Drew Jaynes
050e95d5ee
Re-add parameter names to the add()
DocBlock in wptextpattern
accidentally replaced only with descriptions in [33200].
...
Props iseulde.
See #32891 .
Built from https://develop.svn.wordpress.org/trunk@33205
git-svn-id: http://core.svn.wordpress.org/trunk@33177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-13 18:09:24 +00:00
Drew Jaynes
a6687bccad
Add true descriptions to parameters for the add()
method for wptextpattern
, added in 4.3.
...
See [32703]. See #32891 .
Built from https://develop.svn.wordpress.org/trunk@33200
git-svn-id: http://core.svn.wordpress.org/trunk@33172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-13 17:55:25 +00:00
Andrew Ozz
0241081bae
TinyMCE, shortcuts help popup: do not use translatable strings for the keys.
...
See #31441 .
Built from https://develop.svn.wordpress.org/trunk@33170
git-svn-id: http://core.svn.wordpress.org/trunk@33142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-11 22:37:24 +00:00
Andrew Ozz
7e51b698c6
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 .
Built from https://develop.svn.wordpress.org/trunk@33141
git-svn-id: http://core.svn.wordpress.org/trunk@33112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-09 00:25:25 +00:00