Commit Graph

29 Commits

Author SHA1 Message Date
Andrew Ozz b0cd25962e Upgrade to TinyMCE 3.5.8, fixes #22755
git-svn-id: https://develop.svn.wordpress.org/trunk@23090 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 04:50:31 +00:00
Andrew Nacin 1cc12103f5 Restore the Description field to the media UI in 3.5.
We tried in vain -- a noble but ultimately failed effort -- to reduce the number of fields for attachments from four (title, caption, alt, description) to one (caption for images, title otherwise). Alternative text needed to stay for accessibility reasons, of course.

Eventually title returned due to heavy plugin reliance. Description is too used by too many plugins (often times incorrectly -- the caption is more likely the proper field), hence its less-than-triumphant return today.

Version 3.5 has tried to streamline media in a number of ways. Removing fields may have been too much at once, as it forced not only a user interface change, but a paradigm change as well.

Finally, on upload we populate the description field with IPTC/EXIF captions, rather than the caption field. See #22768, this should be fixed. For now, Description stays.

This commit also restores 'Title' attribute editing to the main tab of the Edit Image dialog. The "Title" field no longer populates title attributes for <img> tags by design (for accessibility and other purposes, see #18984). So, here is a more obvious 'workaround' for the tooltip community.

Finally, this:
 * Cleans up the post.php attachment editor, including by showing a prettier form of the mime type.
 * Enables plugins to specifically hide attachment_fields_to_edit from either post.php (where you can create meta boxes) or the modal (which you may not want to clutter), for compatibility reasons.
 * Hides the 'Describe this file...' placeholder when a field is read-only in the modal.

props nacin, helenyhou.
fixes #22759.



git-svn-id: https://develop.svn.wordpress.org/trunk@23083 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 00:41:06 +00:00
Ryan Boren c53137f535 Scope button classes so they can be used on the frontend without interfering with theme styles.
Props helenyhou, koopersmith
fixes #22644


git-svn-id: https://develop.svn.wordpress.org/trunk@22948 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 13:40:59 +00:00
Ryan Boren e746a5dbb5 In the edit image modal, move Title to the advanced section and move Caption above Alt.
Props nacin
fixes #22646


git-svn-id: https://develop.svn.wordpress.org/trunk@22942 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 04:09:17 +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
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
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
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
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
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
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
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 38fb326258 TinyMCE 3.2.2.3, has several bugfixes
git-svn-id: https://develop.svn.wordpress.org/trunk@10845 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-27 12:57:25 +00:00
Andrew Ozz a697919990 TinyMCE 3.2.1
git-svn-id: https://develop.svn.wordpress.org/trunk@9674 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-14 02:35:02 +00:00
Andrew Ozz 97a7ceda96 Update TinyMCE to 3.2.0 and remove compression, fixes #7827
git-svn-id: https://develop.svn.wordpress.org/trunk@9064 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-02 16:30:14 +00:00
Ryan Boren 6db75e59d4 Collapse crazyhorse to trunk. Incoming! see #7552
git-svn-id: https://develop.svn.wordpress.org/trunk@8691 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-20 21:42:31 +00:00
Andrew Ozz 8138570a20 When not using image captions, IE may add caption null, for 2.7
git-svn-id: https://develop.svn.wordpress.org/trunk@8517 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-01 05:10:27 +00:00
Andrew Ozz 90e3261fd9 Latest TinyMCE, has new load options and bugfixes.
git-svn-id: https://develop.svn.wordpress.org/trunk@8512 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-31 04:01:30 +00:00
Andrew Ozz 491b47b300 Removes the disabling of captions, but leaves couple of hooks so a plugin can do it easily. see #6812
git-svn-id: https://develop.svn.wordpress.org/trunk@8358 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-16 21:36:17 +00:00
Ryan Boren afd113dcf2 Rename wp_caption shortcode to caption. Allow themes to disable captioning. Use dashes instead of underscores in class names. Props azaozz. see #6812
git-svn-id: https://develop.svn.wordpress.org/trunk@8313 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-11 15:59:14 +00:00
Ryan Boren 83e091f297 Fix image resizing inside captions, add edit alt field to the advanced tab. Props azaozz. see #6812
git-svn-id: https://develop.svn.wordpress.org/trunk@8307 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-10 16:39:14 +00:00
Ryan Boren 304340a9b0 Fix quotes in captions. Props azaozz. see #6812
git-svn-id: https://develop.svn.wordpress.org/trunk@8290 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-08 23:38:53 +00:00
Ryan Boren d8d5181c77 TinyMCE 3.1.1 from azaozz. fixes #7191
git-svn-id: https://develop.svn.wordpress.org/trunk@8204 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-27 16:13:27 +00:00
Ryan Boren 99e1ad77bc Edit image fixes from azaozz: : new link not created if the image has class "aligncenter" in Safari; recalculates the demo image size properly and applies any inline styles to it; if relative link is added, it's converted to absolute; "Unknown error" in IE6. see #6811
git-svn-id: https://develop.svn.wordpress.org/trunk@8191 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-25 16:30:28 +00:00
Ryan Boren 94bd9ef781 Edit image updates from azaozz. see #6811
git-svn-id: https://develop.svn.wordpress.org/trunk@8167 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-23 15:26:03 +00:00
Ryan Boren ddc798ad6f TinyMCE 3.1.0.1 from azaozz. fixes #7153 #7148 #7128
git-svn-id: https://develop.svn.wordpress.org/trunk@8127 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-19 16:55:50 +00:00
Ryan Boren 761c8cef28 Image popup improvements from azaozz. Added translation strings, RTL support, several layout improvements, image border, hspace and vspace can be used as shortcuts to add css styles, the preview is visible on both tabs, etc. see #6811
git-svn-id: https://develop.svn.wordpress.org/trunk@8083 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-14 16:38:08 +00:00
Ryan Boren 4c1b6184ba Unify TinyMCE image popup and insert image popup. Props azaozz. see #6811
git-svn-id: https://develop.svn.wordpress.org/trunk@8066 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-10 04:40:21 +00:00