Commit Graph

952 Commits

Author SHA1 Message Date
Daryl Koopersmith 2ca07cdf2a Create WP_Customize_Control to separate the process of rendering a control from fetching, previewing, and saving its values. see #19910.
Many-to-many mapping between settings and controls.
* Settings and controls have been separated in both the PHP (WP_Customize_Setting, WP_Customize_Control) and the JS (wp.customize.Setting, wp.customize.Control).
* While most settings are tied to a single control, some require multiple controls. The 'header_textcolor' control is a good example: to hide the header text, header_textcolor is set to 'blank'.

Add 'Display Header Text' control.

A handful of miscellaneous bugfixes along the way.

Notes:
* Controls should be separated out a bit more; juggling type-specific arguments in the switch statement is rather inelegant.
* Page dropdowns are currently inactive and need to be re-linked.

git-svn-id: https://develop.svn.wordpress.org/trunk@20295 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 04:14:09 +00:00
bumpbot 655b18cb36 Compress scripts/styles: 3.4-alpha-20291.
git-svn-id: https://develop.svn.wordpress.org/trunk@20291 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-25 21:58:20 +00:00
Daryl Koopersmith d8513a5ebb Theme Customizer: Add 'choose image' functionality to image controls. Rough first pass, using header images as an example. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20290 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-25 21:18:32 +00:00
bumpbot d079275e8c Compress scripts/styles: 3.4-alpha-20280.
git-svn-id: https://develop.svn.wordpress.org/trunk@20280 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 04:58:29 +00:00
Daryl Koopersmith e0773710ec Theme Customizer: First pass at image controls. Use header_image as the initial case. Add a 'removed' control param for upload/image controls to map 'removed' to a value other than the empty string. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20278 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 04:35:13 +00:00
bumpbot 1c6f00b0f3 Compress scripts/styles: 3.4-alpha-20277.
git-svn-id: https://develop.svn.wordpress.org/trunk@20277 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 01:58:28 +00:00
Daryl Koopersmith b0f973d884 Theme Customizer: Add WP_Customizer_Setting->control_params, and wp.customize.Control.params to allow settings to pass arbitrary parameters to controls. Add the 'context' parameter to wp.customize.UploadControl. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20276 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 01:02:29 +00:00
bumpbot 5e3e0b0404 Compress scripts/styles: 3.4-alpha-20275.
git-svn-id: https://develop.svn.wordpress.org/trunk@20275 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 22:58:27 +00:00
Daryl Koopersmith c41689115f Theme Customizer: Change 'Random Image' control to be a proper 'Header Image' control. First step to integrating header images. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20274 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 22:43:00 +00:00
bumpbot 8f741e4f24 Compress scripts/styles: 3.4-alpha-20264.
git-svn-id: https://develop.svn.wordpress.org/trunk@20264 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 08:58:23 +00:00
Daryl Koopersmith 95ab797033 Theme Customizer: Add background repeat, position, and attachment settings. Change visibility parameter to accept a string or array( , ). see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20263 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 08:07:44 +00:00
bumpbot c22a8a6cf6 Compress scripts/styles: 3.4-alpha-20262.
git-svn-id: https://develop.svn.wordpress.org/trunk@20262 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 07:58:24 +00:00
Daryl Koopersmith f28d57454f Theme Customizer: Only show uploader 'remove' links when there is an image to remove. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20261 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 07:30:44 +00:00
Daryl Koopersmith 7dc476bd8b Theme Customizer: Add a WP_Customize_Setting->visibility parameter to show/hide a control based upon the value of another control. Also shifts rendering the setting wrapper element into WP_Customize_Setting->render() and adds WP_Customize_Setting->render_content(). see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20260 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 07:17:26 +00:00
Daryl Koopersmith f561219e0b Theme Customizer: Ensure background_color and background_image exist instead of blindly attempting to access their controls. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20259 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 07:03:44 +00:00
bumpbot b1b507b2a9 Compress scripts/styles: 3.4-alpha-20258.
git-svn-id: https://develop.svn.wordpress.org/trunk@20258 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 06:58:22 +00:00
Daryl Koopersmith a2e813571e Theme Customizer: In JavaScript, add the ability to execute a callback once a set of values have been initialized. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20257 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 06:52:44 +00:00
bumpbot 5c54b48c3c Compress scripts/styles: 3.4-alpha-20255.
git-svn-id: https://develop.svn.wordpress.org/trunk@20255 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 04:58:24 +00:00
Daryl Koopersmith 44880bceb5 Theme Customizer: Plupload does not support objects in its multipart_params setting (which causes exceptions in Firefox). Use multidimensional keys to circumnavigate this issue. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20253 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 03:58:06 +00:00
bumpbot fa15fe4754 Compress scripts/styles: 3.4-alpha-20251.
git-svn-id: https://develop.svn.wordpress.org/trunk@20252 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 02:58:22 +00:00
Daryl Koopersmith ee5dcc012f Theme Customizer: Do not attempt to grab the contents of the preview iframe to populate the window title. Reverts plugins repo revision 508947. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20250 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-22 02:39:03 +00:00
bumpbot 8715cf588b Compress scripts/styles: 3.4-alpha-20192.
git-svn-id: https://develop.svn.wordpress.org/trunk@20192 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 13:58:27 +00:00
Andrew Nacin 0cbc56cfa8 Use ajaxurl rather than direct references to admin-ajax.php. see #18952.
git-svn-id: https://develop.svn.wordpress.org/trunk@20191 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 13:30:28 +00:00
bumpbot 5f9f15402c Compress scripts/styles: 3.4-alpha-20180.
git-svn-id: https://develop.svn.wordpress.org/trunk@20180 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 04:15:22 +00:00
Daryl Koopersmith d254551dd7 Theme Customizer: First pass for upload controls, using background image as an example. Add a wrapper for Plupload that allows for custom upload UIs. see #19910.
wp.Uploader is a wrapper that provides a simple way to upload an attachment (using the wp_ajax_upload_attachment handler). It is intentionally decoupled from the UI. When an upload succeeds, it will receive the attachment information (id, url, meta, etc) as a JSON response. If the upload fails, the wrapper handles both WordPress and plupload errors through a single handler.

As todos, we should add drag classes for the uploader dropzone and account for the rough 100mb filesize limit in most browsers. The UI for the customizer upload controls could be improved as well.

git-svn-id: https://develop.svn.wordpress.org/trunk@20179 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 04:14:05 +00:00
bumpbot d4e4ac7283 Compress scripts/styles: 3.4-alpha-20178. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@20178 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 01:00:22 +00:00
Andrew Ozz 4f5a600761 Update TinyMCE to 3.4.9, fixes #20239, fixes #19717
git-svn-id: https://develop.svn.wordpress.org/trunk@20177 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 00:47:06 +00:00
bumpbot 02e1841cc4 Compress scripts/styles: 3.4-alpha-20175. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@20175 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-14 22:00:22 +00:00
Andrew Ozz 995926a5f0 Add support for line breaks to the caption textareas, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@20174 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-14 21:53:11 +00:00
bumpbot 1ae155013d Compress scripts/styles: 3.4-alpha-20167. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@20167 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-09 23:30:29 +00:00
Andrew Ozz 78c8dedcdc Add support for DFW for all instances of the editor, part props sushkov, fixes #19843
git-svn-id: https://develop.svn.wordpress.org/trunk@20166 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-09 23:23:10 +00:00
bumpbot 98715e56d9 Compress scripts/styles: 3.4-alpha-20134.
git-svn-id: https://develop.svn.wordpress.org/trunk@20134 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 03:30:21 +00:00
Daryl Koopersmith f5b9beb8dd Theme Customizer: Move contents of customize.loader.css to wp-admin.css. Make markup/CSS for the full-screen overlay modular. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20133 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 03:19:35 +00:00
bumpbot 4540788d7e Compress scripts/styles: 3.4-alpha-20129.
git-svn-id: https://develop.svn.wordpress.org/trunk@20129 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 23:00:21 +00:00
Daryl Koopersmith 21e5a2e69e Theme Customizer: Add a Control object to better encapsulate different UI elements and make it easy to switch between hard refreshes and postMessage. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20128 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 22:48:07 +00:00
Andrew Ozz ef4f301599 Revert change to the default font in the visual editor, see #20184
git-svn-id: https://develop.svn.wordpress.org/trunk@20125 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 20:33:19 +00:00
bumpbot 4abd8e88a0 Compress scripts/styles: 3.4-alpha-20124.
git-svn-id: https://develop.svn.wordpress.org/trunk@20124 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 03:00:26 +00:00
Daryl Koopersmith e11e5445e9 Theme Customizer: First pass at using postMessage for background color. Fix instance where preview.targetWindow would become inaccurate. Initialize setting values in customize-preview.js. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20123 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 02:49:02 +00:00
bumpbot 10124d291b Compress scripts/styles: 3.4-alpha-20122.
git-svn-id: https://develop.svn.wordpress.org/trunk@20122 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 02:15:22 +00:00
Daryl Koopersmith e841432c7c Theme Customizer: Ensure color pickers initialize to the correct color. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20121 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 02:14:27 +00:00
Daryl Koopersmith c7769fabfd Theme Customizer: Add working color pickers. First pass. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20120 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 02:03:50 +00:00
bumpbot d24750e3a1 Compress scripts/styles: 3.4-alpha-20115.
git-svn-id: https://develop.svn.wordpress.org/trunk@20115 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-05 07:45:20 +00:00
Andrew Ozz e169217ad0 Based on the current UX feedback, remove the "Insert Link" UI from under the caption fields, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@20114 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-05 07:31:31 +00:00
bumpbot d09808555e Compress scripts/styles: 3.4-alpha-20107.
git-svn-id: https://develop.svn.wordpress.org/trunk@20107 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-04 02:15:20 +00:00
Daryl Koopersmith b908add2c2 Theme Customizer: Improve form markup. Make the theme title/author a section. Prevent section arrows from blocking clicks. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20106 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-04 02:06:11 +00:00
bumpbot 36ee9105d8 Compress scripts/styles: 3.4-alpha-20061.
git-svn-id: https://develop.svn.wordpress.org/trunk@20061 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-01 19:00:20 +00:00
Ryan Boren 7df5a5294d Introduce jQuery Masonry. Use it to arrange header thumbnails on custom header screen. Props aaroncampbell. fixes #17242
git-svn-id: https://develop.svn.wordpress.org/trunk@20060 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-01 18:57:28 +00:00
bumpbot bc81976ef2 Compress scripts/styles: 3.4-alpha-20056.
git-svn-id: https://develop.svn.wordpress.org/trunk@20056 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 23:15:21 +00:00
Andrew Ozz 6afe9edf69 Improve adding more css classes to the editor body, add "rtl", "ie7", "ie8", "ie9" so they can be targeted in editor-style.css, see #19437
git-svn-id: https://develop.svn.wordpress.org/trunk@20054 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 23:06:24 +00:00
bumpbot a13ce71c43 Compress scripts/styles: 3.4-alpha-20050.
git-svn-id: https://develop.svn.wordpress.org/trunk@20050 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 22:30:20 +00:00
Daryl Koopersmith fff67f819c Theme Customizer: Bind the preview iframe load event when triggering refresh instead of when creating the iframe. see #19910.
The loaded event should only fire when we've actually triggered a refresh. If loaded is bound when the iframe is created, sometimes the blank iframe will fire a 'load' event before a refresh is triggered (this occurred with relative frequency in firefox). By binding the loaded event in the refresh function, we prevent this from occurring.

git-svn-id: https://develop.svn.wordpress.org/trunk@20049 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 22:24:46 +00:00
bumpbot fe736e6ca1 Compress scripts/styles: 3.4-alpha-20036.
git-svn-id: https://develop.svn.wordpress.org/trunk@20036 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 06:31:00 +00:00
Daryl Koopersmith 0d1e599420 Theme Customizer: Don't switch themes and update settings when the enter key is pressed. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20035 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 06:28:02 +00:00
Daryl Koopersmith a9cafbf2e8 Theme Customizer: Trigger UI updates only when necessary.
git-svn-id: https://develop.svn.wordpress.org/trunk@20034 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 06:18:17 +00:00
bumpbot ebe7582099 Compress scripts/styles: 3.4-alpha-20032.
git-svn-id: https://develop.svn.wordpress.org/trunk@20032 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 01:31:04 +00:00
Daryl Koopersmith 78bf972b68 Improve page loads in the theme customizer by layering loading iframes. Automate refreshing, but debounce multiple refresh events to prevent hammering the server with requests. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20031 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 01:17:21 +00:00
bumpbot 006515c8cc Compress scripts/styles: 3.4-alpha-20014.
git-svn-id: https://develop.svn.wordpress.org/trunk@20014 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 14:18:24 +00:00
Andrew Ozz b5a3c50057 HTML in image captions: improve converting the caption html elements to a shortcode, catch some rare cases where image with a caption is pasted in the visual editor, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@20013 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 08:03:40 +00:00
bumpbot b9736c98e6 Compress scripts/styles: 3.4-alpha-19998.
git-svn-id: https://develop.svn.wordpress.org/trunk@19998 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 04:31:03 +00:00
bumpbot 071026ba26 Compress scripts/styles: 3.4-alpha-19996.
git-svn-id: https://develop.svn.wordpress.org/trunk@19997 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 04:16:01 +00:00
Andrew Nacin fefbd866d6 Correct [19952]. see #19592.
git-svn-id: https://develop.svn.wordpress.org/trunk@19996 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 04:15:08 +00:00
Daryl Koopersmith 9f29c06954 Introduce new theme customizer to replace theme preview. Rough first pass. props koopersmith, ocean90. see #19910.
Merges in http://plugins.svn.wordpress.org/gandalf/branches/dev/ rev 510148.

git-svn-id: https://develop.svn.wordpress.org/trunk@19995 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 04:12:43 +00:00
bumpbot 8ba7abcdef Compress scripts/styles: 3.4-alpha-19994.
git-svn-id: https://develop.svn.wordpress.org/trunk@19994 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 02:15:56 +00:00
Andrew Ozz d3cecfc612 Use json_encode when outputting translated strings for use in TinyMCE, fixes #20119
git-svn-id: https://develop.svn.wordpress.org/trunk@19993 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 02:11:29 +00:00
Andrew Nacin eecaca2457 Add jQuery postMessage v 0.2. Dual licensed MIT/GPL. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@19992 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 02:04:17 +00:00
bumpbot 31e28f6f2e Compress scripts/styles: 3.4-alpha-19991.
git-svn-id: https://develop.svn.wordpress.org/trunk@19991 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 00:01:02 +00:00
Andrew Ozz ffdbe9be58 TinyMCE: move the WordPress plugins styles to the theme's stylesheet, fixes #20118
git-svn-id: https://develop.svn.wordpress.org/trunk@19990 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 23:46:04 +00:00
bumpbot 076239d0ed Compress scripts/styles: 3.4-alpha-19989.
git-svn-id: https://develop.svn.wordpress.org/trunk@19989 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 22:30:59 +00:00
Andrew Ozz d1eb773689 Close TinyMCE popups/dialogs when clicking on the background, fixes #20117
git-svn-id: https://develop.svn.wordpress.org/trunk@19988 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 22:29:46 +00:00
Andrew Ozz cb306d5f4b Add new string to the proper i18n object, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@19986 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 20:42:36 +00:00
bumpbot d3d4cb95e8 Compress scripts/styles: 3.4-alpha-19985.
git-svn-id: https://develop.svn.wordpress.org/trunk@19985 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 19:30:59 +00:00
Andrew Ozz 1a357fa920 Don't show edit/remove image buttons in the visual editor when an image is floated, doesn't have a caption and there is text in the same paragraph, props solarissmoke, fixes #19611
git-svn-id: https://develop.svn.wordpress.org/trunk@19984 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 19:18:59 +00:00
bumpbot 2a0b86ea08 Compress scripts/styles: 3.4-alpha-19983.
git-svn-id: https://develop.svn.wordpress.org/trunk@19983 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 02:00:58 +00:00
Andrew Ozz 0fa723245a HTML in image captions, first run, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@19982 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 01:58:18 +00:00
bumpbot ce89e9f68f Compress scripts/styles: 3.4-alpha-19978.
git-svn-id: https://develop.svn.wordpress.org/trunk@19978 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-22 03:15:57 +00:00
Andrew Ozz d67e4c47f3 Use native TinyMCE popup for the image properties dialog, fixes #20096, see #20094
git-svn-id: https://develop.svn.wordpress.org/trunk@19977 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-22 03:05:25 +00:00
Andrew Nacin d219e90d41 Update wp-tinymce.js.gz.
* Plugins are now sorted alphabetically during concatenation, to ensure consistent generation.
 * Key tinymce/wp-tinymce.js.gz off the revision number, rather than the date.
see #19592.


git-svn-id: https://develop.svn.wordpress.org/trunk@19953 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-19 01:54:02 +00:00
Andrew Nacin 4e770c210c Update TinyMCE mark loaded src. see #19592.
git-svn-id: https://develop.svn.wordpress.org/trunk@19952 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-19 01:46:48 +00:00
Andrew Ozz c033588e1d FIx charset in minified file, see #19592
git-svn-id: https://develop.svn.wordpress.org/trunk@19951 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-18 22:06:17 +00:00
bumpbot a3f45a4d1c Compress scripts/styles: 3.4-alpha-19948.
git-svn-id: https://develop.svn.wordpress.org/trunk@19948 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-18 08:00:17 +00:00
Andrew Ozz 89efacf68c Revert [19946], bumpbot may need to be UTF-8 aware.
git-svn-id: https://develop.svn.wordpress.org/trunk@19947 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-18 07:48:56 +00:00
bumpbot 95cee51167 Compress scripts/styles: 3.4-alpha-19946.
git-svn-id: https://develop.svn.wordpress.org/trunk@19946 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-18 07:00:26 +00:00
Andrew Ozz 402c8c302d Load TinyMCE's non-minified "*src.js" plugin files when SCRIPT_DEBUG is defined, part props ericlewis, fixes #20055
git-svn-id: https://develop.svn.wordpress.org/trunk@19945 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-18 06:43:47 +00:00
Andrew Ozz 5c1c053485 Add the editor ID and the post type (when available) as classes to the TinyMCE's body, fixes #19437
git-svn-id: https://develop.svn.wordpress.org/trunk@19912 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-13 07:22:45 +00:00
bumpbot 6e70033528 Compress scripts/styles: 3.4-alpha-19847.
git-svn-id: https://develop.svn.wordpress.org/trunk@19847 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-06 23:31:17 +00:00
Andrew Ozz 5c2650abc8 Click empty toolbar to scroll to top, props ericmann, fixes #18758
git-svn-id: https://develop.svn.wordpress.org/trunk@19846 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-06 23:17:28 +00:00
Andrew Ozz 4f500fdb56 Update TinyMCE to 3.4.8, fixes #19969, fixes #19936, fixes #19741
git-svn-id: https://develop.svn.wordpress.org/trunk@19830 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-04 22:23:27 +00:00
Andrew Nacin 2e0818c264 Compress CSS/JS using the latest version of YUI Compressor, 2.4.7. Removes final semicolon in a CSS declaration block. Previously, committers used 2.4.2. see #19592.
git-svn-id: https://develop.svn.wordpress.org/trunk@19803 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-01 14:37:52 +00:00
bumpbot 9b98915ea1 Compress scripts/styles: 3.4-alpha-19715.
git-svn-id: https://develop.svn.wordpress.org/trunk@19715 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 22:54:51 +00:00
Daryl Koopersmith 430700d5db Improve pointer collision handling. fixes #19021.
git-svn-id: https://develop.svn.wordpress.org/trunk@19713 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 22:53:05 +00:00
Ryan Boren 2b186b0c45 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Ryan Boren 5e76729992 One newline is enough.
git-svn-id: https://develop.svn.wordpress.org/trunk@19684 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:10:39 +00:00
Andrew Nacin be103c148f '3.4-alpha-19618'
git-svn-id: https://develop.svn.wordpress.org/trunk@19618 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-21 04:22:21 +00:00
Andrew Nacin bcf1be2ce1 hoverIntent r6. fixes #19311.
git-svn-id: https://develop.svn.wordpress.org/trunk@19605 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-20 20:54:54 +00:00
Ryan Boren 676ba7043e Use one space, not two, after trailing punctuation. fixes #19537
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-13 23:45:31 +00:00
Ryan Boren d26f0a4c40 Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@19577 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-08 23:02:33 +00:00
Andrew Ozz cd59832859 Make sure editor-buttons.css is loaded even if tiny_mce.js is used directly and the wp_theme skin is selected in the settings, see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@19533 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 21:27:19 +00:00
Andrew Ozz 4b0fc55339 Include wp-admin-bar-secondary-* when closing non-current submenus, see #19394
git-svn-id: https://develop.svn.wordpress.org/trunk@19508 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 01:07:43 +00:00
Andrew Ozz 70dadbd5e8 When tabbing: on Enter open the current submenu and close other submenus if open, see #19394
git-svn-id: https://develop.svn.wordpress.org/trunk@19505 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 00:43:18 +00:00
Andrew Ozz 83aa770282 Fix the tabbing JS to work as described in the W3 ARIA draft: Tab to select, Enter to show submenu, Esc to close submenu, return to top menu and focus it. See #19394
git-svn-id: https://develop.svn.wordpress.org/trunk@19483 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-30 01:21:38 +00:00
Daryl Koopersmith dfc7eb6125 Don't open a pointer when the target element is hidden. fixes #19357.
git-svn-id: https://develop.svn.wordpress.org/trunk@19482 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-29 19:43:24 +00:00
Andrew Nacin 3118dd18d7 Call preventDefault() on pointer 'Dismiss'. props SergeyBiryukov, johnbillion, fixes #19361.
git-svn-id: https://develop.svn.wordpress.org/trunk@19481 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-29 18:56:13 +00:00
Andrew Ozz b8a1940ac7 Prevent error in autosave for CPTs without title or editor, props sorich87, fixes #18227
git-svn-id: https://develop.svn.wordpress.org/trunk@19476 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-29 18:06:56 +00:00
Andrew Nacin 447d1d7b96 Don't open a pointer when the target element is hidden. see #19357.
git-svn-id: https://develop.svn.wordpress.org/trunk@19467 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-28 17:50:49 +00:00
Andrew Nacin 9ec00c3d9f preventDefault() for link popup 'Cancel'. props ocean90, SergeyBiryukov, fixes #19369.
git-svn-id: https://develop.svn.wordpress.org/trunk@19460 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-28 16:37:46 +00:00
Andrew Ozz 6bb6916409 Admin bar: change the tabbing to behave as if the admin bar menus were click-to-open (Tab to select, Enter to open/close), fixes #19088
git-svn-id: https://develop.svn.wordpress.org/trunk@19458 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-28 00:31:11 +00:00
Andrew Ozz 8319988a27 TinyMCE: add class to the editor body for the old fullscreen mode (still can be used by plugins), see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@19457 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-28 00:21:36 +00:00
Andrew Ozz d2e0a6feab Rename the problematic "unload" event in Thickbox to "tb_unload", making it a true custom event, fixes #19189
git-svn-id: https://develop.svn.wordpress.org/trunk@19456 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-26 17:49:50 +00:00
Andrew Ozz 6f06a70ecc Revert [19264] to keep back-compat. Any improperly fired window.unload will have to be dealt with on a case by case basis.
git-svn-id: https://develop.svn.wordpress.org/trunk@19451 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-25 17:33:31 +00:00
Daryl Koopersmith 81d35742c3 Allow access to any admin bar menu level by tabbing. fixes #19088.
git-svn-id: https://develop.svn.wordpress.org/trunk@19427 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 21:29:33 +00:00
Andrew Ozz 79462f00a1 jQuery 1.7.1, fixes #19326
git-svn-id: https://develop.svn.wordpress.org/trunk@19423 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 19:36:15 +00:00
Andrew Nacin fc9bd67e14 Move WP_Editor to a _WP_Editors encapsulation.
* WP_Editor will return in 3.4 as a one true API for editor instances. Stick to wp_editor() for now.
 * TinyMCE can now be forced on with tinymce = true. It defaults to the value for user_can_richedit().
 * Restores wp_default_editor(), wp_link_query(), wp_link_dialog(), wp_fullscreen_html().
fixes #19320.


git-svn-id: https://develop.svn.wordpress.org/trunk@19420 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 19:06:52 +00:00
Andrew Ozz 114083df17 Change the drop target border color, props ocean90, fixes #19298
git-svn-id: https://develop.svn.wordpress.org/trunk@19367 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-20 19:16:35 +00:00
Andrew Ozz 50a35b02b6 Fix return value in Plupload when using the html4 runtime, fixes #19302
git-svn-id: https://develop.svn.wordpress.org/trunk@19362 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-20 01:10:50 +00:00
Andrew Ozz e0d1c530da Remove old styling for rtl progress bar, see #19042
git-svn-id: https://develop.svn.wordpress.org/trunk@19360 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-19 21:50:33 +00:00
Andrew Ozz 4ded511eff Uploader: show the progress bars as soon as files are queued, attempt to make the progress bar more precise, see #19228
git-svn-id: https://develop.svn.wordpress.org/trunk@19346 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-19 03:15:42 +00:00
Andrew Ozz 9007ab3e75 When queueing too large files in the multi-file uploader in IE or Opera, show error message and remove the file from the queue, fixes #19228
git-svn-id: https://develop.svn.wordpress.org/trunk@19329 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-18 01:10:25 +00:00
Daryl Koopersmith b9e3cf466a Allow linkless items in the admin bar. Improve non-jQuery admin bar tabbing. fixes #19277, #19149, #19164, #15519. see #18197, #19088.
git-svn-id: https://develop.svn.wordpress.org/trunk@19328 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-18 00:12:57 +00:00
Andrew Ozz a77387cac7 Make the Save All Changes initially hidden on Media -> Add New screen, improve the progress bar "progress" to 1px ticks, see #19190
git-svn-id: https://develop.svn.wordpress.org/trunk@19306 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-15 21:22:27 +00:00
Andrew Ozz 1ccfd1739c Workaround for WebKit bug when previewing posts, props SergeyBiryukov, fixes #18341
git-svn-id: https://develop.svn.wordpress.org/trunk@19299 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-15 18:48:55 +00:00
Andrew Ozz 5ca57a6fac Prevent errors in QTags.closeAllTags(), make it remove button states but not modify the content (as that often is wrong anyways), fixes #15911
git-svn-id: https://develop.svn.wordpress.org/trunk@19290 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-15 01:15:10 +00:00
Andrew Ozz 3d33362b52 Add big-file-upload-warning for IE and Opera, left-align the percentage in the progress bar, see #19228
git-svn-id: https://develop.svn.wordpress.org/trunk@19286 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-14 23:21:16 +00:00
Andrew Nacin b52ab851ec ALIGN ALL THE THINGS. fixes #19242.
git-svn-id: https://develop.svn.wordpress.org/trunk@19278 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-14 20:40:31 +00:00
Daryl Koopersmith 0ebb52f9a3 More admin bar markup improvements. Make primary and secondary submenu groups siblings (and prevent ul nesting issues). see #18197.
git-svn-id: https://develop.svn.wordpress.org/trunk@19270 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-14 11:05:37 +00:00
Daryl Koopersmith 4bc2fdb619 New pointer styles. Arrows are currently optimized to point upward. props georgestephanis, chexee. see #18693.
git-svn-id: https://develop.svn.wordpress.org/trunk@19269 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-14 10:30:14 +00:00
Andrew Ozz 82f5175bf7 Media Lib: fix displaying file headers in IE7, delegate the Show/Hide JS, prevent displaying upload error for the same file twice, see #19228
git-svn-id: https://develop.svn.wordpress.org/trunk@19268 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-13 18:37:30 +00:00
Andrew Ozz 3e06696012 Add error message when a big file fails to upload, expose the XHR request in plipload and abort() it, see #19228
git-svn-id: https://develop.svn.wordpress.org/trunk@19266 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-13 02:01:13 +00:00
Andrew Ozz 38ddbaca4e Thickbox: do .triggerHandler() instead of .trigger(), props duck_, fixes #19189
git-svn-id: https://develop.svn.wordpress.org/trunk@19264 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-12 06:48:04 +00:00
Andrew Ozz bd7f04548b Standardize title strings for editor buttons, props pavelevap SergeyBiryukov, fixes #18125
git-svn-id: https://develop.svn.wordpress.org/trunk@19263 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-12 06:15:15 +00:00
Andrew Ozz 0620dbb5eb Uploader: fix file-size-exceeded error handling, see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@19262 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-12 00:52:26 +00:00
Andrew Ozz 93e5c50ad8 Send the 'wp-remove-post-lock' XHR only when the main window is unloaded (unloading the Thickbox iframe triggers it too), see #18515
git-svn-id: https://develop.svn.wordpress.org/trunk@19258 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-11 19:52:12 +00:00
Andrew Ozz 448af8627c Uploader: fix progress bar JS and update the style (light blue bars), see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@19247 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-10 20:33:26 +00:00
Andrew Ozz 940cb38514 Fix styling in the MCE help popup, see #18314
git-svn-id: https://develop.svn.wordpress.org/trunk@19227 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-09 14:38:37 +00:00
Andrew Ozz d2d9926055 Revert [19223] and only stop showing the checkbox, props nacin, see #19174
git-svn-id: https://develop.svn.wordpress.org/trunk@19225 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-08 22:34:09 +00:00
Andrew Ozz 4c66628f35 Remove the Resize files checkbox for now (revisit in 3.4), fixes #19174
git-svn-id: https://develop.svn.wordpress.org/trunk@19223 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-08 22:23:40 +00:00
Andrew Ozz a56cd15128 Bring back the Fullscreen button in Quicktags, fixes #19194
git-svn-id: https://develop.svn.wordpress.org/trunk@19215 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-08 16:53:31 +00:00
Andrew Ozz b1af3610ec Fix a:focus styling and backwards tabbing, add tabindex arg for <a>, see #19088
git-svn-id: https://develop.svn.wordpress.org/trunk@19207 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-07 20:38:38 +00:00
Andrew Nacin 808c8dc6a5 Remove old vendor prefixes. props andrewryno, ocean90, fixes #18700.
git-svn-id: https://develop.svn.wordpress.org/trunk@19203 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-07 17:32:24 +00:00
Andrew Ozz 5c18d3b4f4 Uploader: update to 1.5.1.1, remove plupload.full.js (we cannot use it), rename the script handle in script-loader to avoid any confusion, fixes #19187
git-svn-id: https://develop.svn.wordpress.org/trunk@19194 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-06 21:46:24 +00:00
Andrew Nacin 15622fb001 Correct TinyMCE anchor (as in <a name>) image. props jakemgold, fixes #18419.
git-svn-id: https://develop.svn.wordpress.org/trunk@19190 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-06 20:14:13 +00:00
Andrew Ozz f31c4b00c8 Fix js error on mousedown in the editor, props joehoyle, fixes #19165
git-svn-id: https://develop.svn.wordpress.org/trunk@19180 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-05 19:49:42 +00:00
Andrew Ozz d58037ff4a Update the spellchecker plugin for TinyMCE to 2.0.6, fixes #19105
git-svn-id: https://develop.svn.wordpress.org/trunk@19178 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-05 18:32:47 +00:00
Andrew Ozz a410b455a4 Phpdoc fix for quicktags.js, see #19098
git-svn-id: https://develop.svn.wordpress.org/trunk@19173 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-05 16:26:00 +00:00
Andrew Ozz bbb51b1807 Improve handling of init and adding buttons to Quicktags, fixes #19098
git-svn-id: https://develop.svn.wordpress.org/trunk@19172 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-05 16:00:38 +00:00
Andrew Nacin 50c56deeeb jQuery 1.7.
props ocean90, fixes #19144.


git-svn-id: https://develop.svn.wordpress.org/trunk@19165 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-05 03:25:14 +00:00
Andrew Ozz bf02e004e0 Support for "tabbing" through the admin bar and admin menu, fixes #19088
git-svn-id: https://develop.svn.wordpress.org/trunk@19162 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-05 01:13:18 +00:00
Andrew Ozz 3700b57fdc Remove the Cancel Upload button, fixes #19050
git-svn-id: https://develop.svn.wordpress.org/trunk@19127 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-03 01:47:12 +00:00
Andrew Ozz fa570e7b76 More css cleanup, fix styles in the Edit Image popup then the editor is on the front end see #18314
git-svn-id: https://develop.svn.wordpress.org/trunk@19116 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-02 15:24:56 +00:00
Andrew Ozz 947ba8f62c Fix uploader "file size exceeded" error message, fix displaying uploaded queue errors, see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@19100 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-01 11:56:20 +00:00
Andrew Ozz 1746c2af62 Disable the Cancel Upload button after the upload has finished or if it was interrupted, fixes #19050
git-svn-id: https://develop.svn.wordpress.org/trunk@19099 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-31 21:38:28 +00:00