Andrew Ozz
bfbcfe3e6a
wpLink: replace the "Title" field with a "Text" field and populate it with the link text when editing an existing link or with the selected text if any.
...
Props iseulde. See #28206 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31713 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 02:39:02 +00:00
Andrew Ozz
2f41519c46
TinyMCE: Remove old placeholder functions and callbacks.
...
Props iseulde. Fixes #31576 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31703 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 20:27:48 +00:00
Andrew Ozz
9aba4766fc
TinyMCE: update to 4.1.9. Fixes #31551 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@31700 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 19:19:56 +00:00
Andrew Ozz
7baa0da965
TinyMCE: when pasting an URL over a selection, insert a link with the URL instead of replacing the selection with it. Props iseulde. Fixes #31571 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@31691 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 19:59:14 +00:00
Andrew Ozz
01eb7466ae
TinyMCE: wpView improvements: introduce getText() and remove() methods, improved getInstance(), better docs. Props iseulde. See #31412 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@31559 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-26 19:31:27 +00:00
Andrew Ozz
fc6ffd2a83
TinyMCE: wpView improvements: remove the (obsolete) get/setViewText methods. Update stopping/pausing of multiple ME media players. Props iseulde. See #31412 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@31548 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-26 00:30:35 +00:00
Andrew Ozz
3d36949893
TinyMCE: wpView improvements:
...
- Better structure, simpler "view" registration, better extensibility.
- Better inline documentation.
- Don't show a placeholder for pasted link until we know the link is "embeddable'.
And many more improvements. Props iseulde. See #31412 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31546 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-25 23:12:08 +00:00
Andrew Ozz
24a33d8181
TinyMCE: ensure the image toolbar stays visible when the image is much wider than the editor. Props iseulde, fixes #20696 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@31362 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-06 22:59:35 +00:00
Andrew Ozz
9ade002c6f
TinyMCE: fix vertical positioning of the image toolbar when there are several instances of the editor. Props avryl, fixes #31028 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@31235 602fd350-edb4-49c9-b593-d223f7449a82
2015-01-18 17:55:39 +00:00
Andrew Ozz
84c0411bcc
TinyMCE: select the iframe element by id. Needed as some browser extensions insert extra elements in the page. Props avryl, see #30785 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@31180 602fd350-edb4-49c9-b593-d223f7449a82
2015-01-14 21:32:23 +00:00
Andrew Ozz
43b2de66c6
TinyMCE wpView: when clicking in the editor optimize the caret placement before or after a view. Props avryl, fixes #30938 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@31143 602fd350-edb4-49c9-b593-d223f7449a82
2015-01-11 20:41:36 +00:00
Scott Taylor
d5328fc674
When outputting JS with a Content-Type header:
...
`text/javascript` is obsolete, `application/x-javascript` was experimental. `application/javascript` is the recommended type per RFC 4329.
Props sergej.mueller.
Fixes #29196 .
git-svn-id: https://develop.svn.wordpress.org/trunk@31029 602fd350-edb4-49c9-b593-d223f7449a82
2015-01-03 02:56:14 +00:00
Andrew Ozz
8298e94bfe
TinyMCE wpView: when clicking on the Edit button, move the focus back to the editor before opening the modal. This is needed for IE so TinyMCE can save the proper DOM "bookmark", and makes it possible to move the focus to the modal after it is opened.
...
See #30817 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30986 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-22 21:30:16 +00:00
Andrew Nacin
daf16cdb63
Call it 'Distraction-free writing mode' and update the help string. fixes #30657 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30890 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-16 10:06:17 +00:00
Andrew Ozz
276a69d6f9
TinyMCE: add another Edit translatable string for the tooltip of the Edit button on the image toolbar. Props pavelevap, see #30694 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30839 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-13 00:46:20 +00:00
Andrew Ozz
3fb7f40445
TinyMCE: remove reposition delay on showing the image toolbar. Not needed when no animation. Fixes #30670 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30829 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-12 00:09:29 +00:00
Andrew Ozz
1a8c0b9254
TinyMCE: return focus to the editor after closing the image toolbar. Props afercia, see #27642 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30775 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-07 20:07:22 +00:00
Andrew Ozz
08021593f3
TinyMCE, improve accessibility:
...
- Return focus to the editor on pressing Escape while the image toolbar is focused.
- Add a Close button to the Help modal and close it on Escape.
- Override the title on the editor iframe (read by screen reader apps), replace with the Alt+Shift+H shortcut.
- Add focus shortcuts descriptions to the Help modal.
Fixes #27642 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30757 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-06 23:52:25 +00:00
Andrew Ozz
6f43327574
TinyMCE: manually fire ExecCommand when aligning images as we do preventDefault() on BeforeExecCommand for them. Props avryl, fixes #30565 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30748 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-06 00:32:18 +00:00
Andrew Ozz
4eb3c5960f
TinyMCE: update the wpView toolbar to look the same as the new image toolbar.
...
Fixes #30561 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30694 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-02 00:25:15 +00:00
Andrew Ozz
45f4403dd0
TinyMCE: update to 4.1.7, changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt . Fixes #30560 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30675 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 23:27:23 +00:00
Andrew Ozz
f078fc3e99
Editor: use the Alt+Shift+W keyboard shortcut for new DFW from both the Visual and Text editors. Props afercia, fixes #30450 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30593 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 01:43:56 +00:00
Andrew Ozz
9fe0de6c42
Remove unused CSS and JS from wp-mce-help.php, see #30517 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30584 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 23:22:33 +00:00
Mark Jaquith
3fb3ffbc78
Remove old DFW width adjustment help text.
...
fixes #30517
git-svn-id: https://develop.svn.wordpress.org/trunk@30582 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 22:29:57 +00:00
Andrew Ozz
d4946a7904
Editor:
...
- Add CSS reset for the TinyMCE fullscreen mode when used on the Edit Post screen.
- Fix loading of the old and new DFW buttons, use another arg. passed to WP_Editors.
- Reset editor-expand when exiting TinyMCE fullscreen mode.
Fixes #30453 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30573 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 02:49:41 +00:00
Dominik Schilling (ocean90)
836ef75b8e
Update embedded.png after running grunt imagemin.
...
After [30059] and [30079] we still had four images which could be minified. Three of them are handled by [30562], the last one by this.
fixes #30141 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30563 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 14:08:56 +00:00
Andrew Ozz
a6b7826831
TinyMCE: don't hide the image toolbar when the iframe window fires onresize. There is a bug in several browsers that triggers onresize when a tooltip is shown, only in RTL mode. Also use better variable name. Fixes #30147 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30560 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 04:30:31 +00:00
Andrew Ozz
c2c0eee75a
TinyMCE: use the actual image node when calculating the position of the toolbar. Fixes a bug in old IE. See #30147 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30558 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-25 01:21:35 +00:00
Andrew Ozz
9998091278
TinyMCE: change the default font size from 100% to 16px to fix some back-compat issues, fixes #30038 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30490 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 22:22:55 +00:00
Andrew Nacin
45d6c62707
TinyMCE: Verify HTML in captions. props azaozz
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30435 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 13:48:20 +00:00
Andrew Ozz
7137f26a5b
TinyMCE: update to the latest dev. version, 4.1.6+. Fixes #30411 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30397 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-20 00:49:38 +00:00
Andrew Ozz
5740d2206b
TinyMCE: fix the tooltip for 'alignnone' button on the image toolbar. Props johnbillion, see #30147 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30385 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-19 17:26:18 +00:00
Andrew Ozz
34e409ddd8
Fix typo in [30361], see #30147 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30362 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-16 23:14:49 +00:00
Andrew Ozz
d2b8163078
TinyMCE: don't show image toolbar for placeholder images. See #30147 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30361 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-16 23:11:14 +00:00
Andrew Ozz
256db7c4cb
TinyMCE: fix the cursor appearance while it is outside the editor body. Props miyauchi, fixes #30112 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30349 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-15 01:20:41 +00:00
Mark Jaquith
78f0186866
Introduce Distraction-Free Writing v2, a re-think of DFW that uses the main editor instance
...
* the "DFW" button is now an auto/off toggle
* defaulting to auto during beta, decide later for release
* "auto" means that DFW gets enabled as you start typing in editor
* tabbing and mousing out will bring the full interface back
* there is a slight grace period during which your mouse can quickly return
Feature plugin work happened here: https://github.com/avryl/focus
props avryl, azaozz, Michael Arestad
fixes #29806
git-svn-id: https://develop.svn.wordpress.org/trunk@30338 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 22:30:55 +00:00
Andrew Ozz
307639954a
TinyMCE: enhance the inline toolbar for images:
...
- Add alignment (left, center, right, none) buttons.
- Position the menu above the image when possible, except on iOS.
- Fix selecting images on iOS.
First run, part props avryl. See #30147 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30318 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 00:55:22 +00:00
Aaron Jorbin
233946b852
Update images based on grunt imagemin
...
The new version of imagemin that was added in r30059 condenses some images more.
see #30141
git-svn-id: https://develop.svn.wordpress.org/trunk@30079 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 22:01:12 +00:00
Andrew Ozz
a454872630
TinyMCE: update to 4.1.6+. Adds support for cache-busting when auto-loading JS and CSS. Change the tests to run in /build. Changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt .
...
Fixes #30079
git-svn-id: https://develop.svn.wordpress.org/trunk@29994 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-23 02:07:15 +00:00
Andrew Ozz
37e553ec79
TinyMCE: update the default styles: make the font size larger and make it the same size in tables. Fixes #30038
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29986 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-21 23:05:33 +00:00
Andrew Ozz
63634ff1bb
TinyMCE: fix the 'wpgallery' plugin to use a placeholder for galleries when either the 'wpview' plugin or wp.mce is not loaded. Fixes #28756
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29883 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-12 18:12:58 +00:00
Sergey Biryukov
5f0598234b
Use Tahoma for RTL in general and Arial for Hebrew in editor styles.
...
fixes #29553 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29773 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-27 11:10:01 +00:00
Andrew Ozz
27806558a2
TinyMCE wpView: when pasting/inserting content before a view, add new paragraph above it and insert the content there. Props avryl, fixes #29380 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29766 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-26 00:20:28 +00:00
Andrew Ozz
1190ed50a8
TinyMCE: fix image captions regexp when wpautop is disabled in wp_editor(). Fixes #29592 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29730 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-10 23:02:05 +00:00
Andrew Ozz
045c767e0a
TinyMCE: fix the 'tabfocus' plugin to check if default is prevented on pressing tab, bind the events later so other plugins can cancel them. Merged upstream in 86098b3485 together with another change.
...
Fixes #29430
git-svn-id: https://develop.svn.wordpress.org/trunk@29657 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-01 19:02:08 +00:00
Helen Hou-Sandi
1121aad86e
Editor scrolling: reduce the amount of height jumping on load.
...
props avryl.
fixes #29307 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29628 602fd350-edb4-49c9-b593-d223f7449a82
2014-08-26 18:38:26 +00:00
Scott Taylor
c88c4d4f21
MCE View sandboxes:
...
* Use a `MutationObserver` to listen to the `body` class of the parent editor frame.
* In `wpview_media_sandbox_styles()`, only return the MEjs stylesheets.
* In `wp_ajax_parse_media_shortcode()` and `wp_ajax_parse_embed()`, return an object instead of an HTML blob to allow passing `body` and `head` separately
Props avryl, azaozz.
Fixes #29048 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29615 602fd350-edb4-49c9-b593-d223f7449a82
2014-08-26 04:45:54 +00:00
Andrew Ozz
649607b139
TinyMCE wpView: exclude more non-printable keyCodes in isSpecialKey(), fixes #29115
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29606 602fd350-edb4-49c9-b593-d223f7449a82
2014-08-25 20:40:21 +00:00
Andrew Ozz
c83a9ca2c9
TinyMCE: update to 4.1.4-20140822. Changes:
...
- Fixed bug where sometimes the resize rectangles wouldn't properly render on images on WebKit/Blink. 9a2d01cc14
- Fixed nodeChanged selection issue where the image selection wouldn't be removed if you clicked right after/before it. dd729c67e0
- Fixed bug in list plugin where delete/backspace would merge empty LI elements in lists incorrectly. caadfb05dd
See #29310
git-svn-id: https://develop.svn.wordpress.org/trunk@29576 602fd350-edb4-49c9-b593-d223f7449a82
2014-08-22 17:43:39 +00:00
Andrew Ozz
208645191d
TinyMCE: update to 4.1.4. Changelog: http://www.tinymce.com/develop/changelog/?type=tinymce . Fixes #29310
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29570 602fd350-edb4-49c9-b593-d223f7449a82
2014-08-21 23:52:28 +00:00