Commit Graph

75 Commits

Author SHA1 Message Date
bumpbot 8edc223912 Compress scripts/styles: 3.5-beta3-22645. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22645 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-18 18:58:32 +00:00
Andrew Ozz 37a39cbefa TinyMCE: place the caret after/under images with captions when inserting content, fixes #19389
git-svn-id: https://develop.svn.wordpress.org/trunk@22644 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-18 18:04:20 +00:00
Andrew Nacin fe14a22e31 Introduce a new, cross-browser HiDPI CSS @media rule to be used everywhere.
{{{
@media print,
  (-o-min-device-pixel-ratio: 5/4),
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 120dpi) {
}}}

Serve HiDPI graphics for printing, regardless of screen resolution.

Specify Opera's vendor-prefixed device pixel ratio property, for Opera desktop.

Specify a minimum Webkit device pixel ratio of 1.25 instead of 1.5, to serve
2x images to Android devices that are between 1 and 1.5x (like the Nexus 7).
Firefox and Opera will respond to 1.5x on these devices, but Chrome will not.

Specify min-resolution, which covers Firefox 19. Opera on Android also supports
min-resolution, but Opera Mini does not support dppx, so the dpi unit is used.

props iammattthomas for the exhaustive research.
props lessbloat for patching.

fixes #22238.



git-svn-id: https://develop.svn.wordpress.org/trunk@22629 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 06:50:08 +00:00
bumpbot 4bb9a6150c Compress scripts/styles: 3.5-beta3-22607. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22607 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 00:58:33 +00:00
Andrew Ozz c20cd04a7b TinyMCE: fix and improve the popup buttons for editing images and galleries show/hide for touch devices, fix inconsistency in iOS when "touching" an image inside a link, see #21390
git-svn-id: https://develop.svn.wordpress.org/trunk@22602 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 23:49:19 +00:00
bumpbot 33cbea6805 Compress scripts/styles: 3.5-beta3-22589. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22589 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 00:58:36 +00:00
Andrew Ozz 434af4ce3e TinyMCE: fix styles, add 2x background icons and load buttons.css in the Edit Image modal, remove wp-view styles from content.css, add 2x icons for the popup buttons (for editing image and gallery), fixes #22447, see #21019
git-svn-id: https://develop.svn.wordpress.org/trunk@22586 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-14 23:21:59 +00:00
Andrew Ozz 7d5de0703a TinuMCE: update to 3.5.7, fixes #21173
git-svn-id: https://develop.svn.wordpress.org/trunk@22550 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-12 21:20:46 +00:00
Mark Jaquith 504b94b1b3 Use ImageOptim to losslessly smush our images. About half a MB in savings! fixes #22381. props waldojaquith
git-svn-id: https://develop.svn.wordpress.org/trunk@22425 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 18:49:10 +00:00
bumpbot 7f2fa09f5c Compress scripts/styles: 3.5-beta2-22252. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22252 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-16 22:58:39 +00:00
Andrew Ozz c593ca433a TinyMCE: fix showing popup buttons on images in WebKit, fixes #22188
git-svn-id: https://develop.svn.wordpress.org/trunk@22246 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-16 18:16:29 +00:00
Andrew Nacin db981a3b27 Switch to .min for compressed JS and CSS files.
* This moves our "development" versions from .dev.js to .js (same for css).
 * The compressed version then moves from .js to .min.js (same for css).

By switching to the standard .min convention, it sets expectations for developers,
and works nicely with existing tools such as ack.

fixes #21633.



git-svn-id: https://develop.svn.wordpress.org/trunk@21592 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 00:04:18 +00:00
bumpbot ebcef178df Compress scripts/styles: 3.5-alpha-21580. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21580 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 02:58:28 +00:00
Andrew Ozz ce9a8bdd8e Disable the (fake) image resizing in WebKit and Opera in TinyMCE 3.5.6, fix dragging image with caption in Firefox, see #21173
git-svn-id: https://develop.svn.wordpress.org/trunk@21576 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 01:47:53 +00:00
Andrew Ozz 754c42e71f Update TinyMCE to 3.5.6, see #21173
git-svn-id: https://develop.svn.wordpress.org/trunk@21545 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-18 23:24:27 +00:00
bumpbot 95aac8c091 Compress scripts/styles: 3.5-alpha-21255. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21255 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-10 02:58:25 +00:00
Andrew Ozz e69e38219b TinyMCE: when pressing Enter while an image with caption is selected, fix moving the caret in a new paragraph under it, fix opening the Image Properties popup in IE9, see #21173
git-svn-id: https://develop.svn.wordpress.org/trunk@21254 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-10 02:31:30 +00:00
bumpbot 12f878c0ec Compress scripts/styles: 3.5-alpha-21233. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21233 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-08 22:58:20 +00:00
Andrew Ozz 23cbfec581 TinyMCE: don't throw fatal errors for malformed/invalid image caption shortcodes, props SergeyBiryukov, see #21145
git-svn-id: https://develop.svn.wordpress.org/trunk@21232 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-08 21:11:23 +00:00
Andrew Ozz 057704f003 Image captions: change query arg in the Edit Image iframe HTML to refresh browser cache, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@20831 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-18 23:09:59 +00:00
bumpbot 93a7eaf328 Compress scripts/styles: 3.4-beta3-20681. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@20681 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 01:58:25 +00:00
Andrew Ozz 95808e088f Change the image caption shortcode format to [caption ...]<a><img /></a> caption text + html[/caption]. That way HTML tags in captions are better supported and the shortcode wouldn't break when using the wrong quotes. Props sushkov, nacin, fixes #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@20679 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 01:14:52 +00:00
Andrew Nacin a14e7a1e8f Move to pixels to avoid off-by-one rendering in Chrome. props trepmal. fixes #20402.
git-svn-id: https://develop.svn.wordpress.org/trunk@20597 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 20:56:26 +00:00
Andrew Nacin af4b4bb752 Remove monospace from TinyMCE caption/alignment image edit popup. see #18311.
git-svn-id: https://develop.svn.wordpress.org/trunk@20593 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 19:54:04 +00:00
bumpbot f3e171b253 Compress scripts/styles: 3.4-alpha-20343.
git-svn-id: https://develop.svn.wordpress.org/trunk@20343 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-02 22:58:19 +00:00
Andrew Ozz 05071148d9 Editor: fix adding a link in WebKit to floated image, fixes #16569
git-svn-id: https://develop.svn.wordpress.org/trunk@20341 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-02 22:16:30 +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 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 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 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 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
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
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 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 c0f4b1a326 Improve the image drag-resize detection in the visual editor (supported in FF and IE only), remove the size-* class if the image is soft-resized, see #18107
git-svn-id: https://develop.svn.wordpress.org/trunk@18702 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-18 03:00:13 +00:00
Andrew Ozz d39d7e4ba4 Editor: utilize the new "formats" option in TinyMCE, fix errors in IE when pressing Enter inside a caption box, fix resizing of the caption box when the user soft-resizes the image in the editor, fixes #12574
git-svn-id: https://develop.svn.wordpress.org/trunk@16090 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 20:06:00 +00:00
Andrew Ozz 839bad194f Editor: stop inserting empty paragraphs before/after captioned images, see #15095
git-svn-id: https://develop.svn.wordpress.org/trunk@15822 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-16 22:11:31 +00:00
Andrew Ozz cb192bb9c7 Clean CSS of the Edit Image popup in the visual editor props Simek, show changed image size and fill width or height when left blank, fixes #11655, fixes #10442
git-svn-id: https://develop.svn.wordpress.org/trunk@12660 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 13:06:17 +00:00
Andrew Ozz 4a9acd62f8 Fix timeout for the inline buttons on images in TinyMCE.
git-svn-id: https://develop.svn.wordpress.org/trunk@12115 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-27 09:06:26 +00:00
Andrew Ozz 5e11e936ef PressThis: fix TinyMCE config and IE6 css "hasLayout"
git-svn-id: https://develop.svn.wordpress.org/trunk@12112 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-27 00:23:58 +00:00
Andrew Ozz 104abc4a7b When inserting the embed shortcode in TinyMCE replace it with a placeholder image, update the 'wordpress', 'wpeditimage' and 'wpgallery' TinyMCE plugins, fix the audio and video "From URL" tabs in the uploader popup to accept only URLs for embedding, see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12098 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-24 11:43:42 +00:00
Andrew Ozz 50c42a07fc TinyMCE in Firefox: fix crash when dragging images with caption, drag the image together with the caption (only in Firefox 3.5+)
git-svn-id: https://develop.svn.wordpress.org/trunk@12085 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-22 05:30:29 +00:00