WordPress/wp-includes/js/tinymce
Andrew Nacin 60676ee282 Introduce HTML5 caption support.
When a theme supports HTML5 captions via add_theme_support( 'html5', 'caption' ), figure and figcaption will be used instead of div and p.

There's a bonus. But first, some history: Captions were introduced with an inline style set for the container. This remains, as it is there to force captions to wrap. But this inline style included an extra 10 pixels, which have vexxed theme developers for years. While these pixels were designed to ensure padding around floated images, modern themes handle this with grace. The additional pixels thus feel encumbering.

As the new HTML5 gallery support avoids outputting default gallery styles (again, irking theme developers for years; see #26697), the new HTML5 caption support will also ditch these 10 pixels of unwanted hand-holding. 

The 10 pixels are also removed entirely in the visual editor (and more styles may also disappear here; see #26642), giving themes the power necessary to match the frontend styles.

The filter img_caption_shortcode_width added in 3.7 to work around this madness (see #14380) is skipped entirely when the theme supports HTML5 captions.

props obenland, azaozz.
see #26642. also fixes #9066.

Built from https://develop.svn.wordpress.org/trunk@27668


git-svn-id: http://core.svn.wordpress.org/trunk@27511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-24 02:05:14 +00:00
..
langs Add core support for Playlists and Video Playlists. 2014-02-24 18:08:16 +00:00
plugins Introduce HTML5 caption support. 2014-03-24 02:05:14 +00:00
skins Introduce HTML5 caption support. 2014-03-24 02:05:14 +00:00
themes/modern TinyMCE: update to 4.0.18, see #24067 2014-03-04 01:57:15 +00:00
utils TinyMCE 4.0.12, first run. 2013-12-28 23:53:15 +00:00
license.txt Fix EOL for newly added files 2011-04-11 18:23:51 +00:00
tiny_mce_popup.js TinyMCE: update to 4.0.20, see #24067 2014-03-19 04:46:15 +00:00
tinymce.js TinyMCE: update to 4.0.20, see #24067 2014-03-19 04:46:15 +00:00
tinymce.min.js TinyMCE: update to 4.0.20, see #24067 2014-03-19 04:46:15 +00:00
wp-mce-help.php TinyMCE: style the modals to match WordPress admin (first-run). Fix couple of IE problems in tiny_mce_popup.js. Props avryl, see #26952, see #24067 2014-02-18 06:32:14 +00:00
wp-tinymce.js.gz Introduce HTML5 caption support. 2014-03-24 02:05:14 +00:00
wp-tinymce.php Add a sane, inclusive HTML element/attribute schema to TinyMCE. 2012-12-07 11:26:25 +00:00