WordPress/wp-includes/js/tinymce/plugins
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
..
charmap TinyMCE modals: re-enable the Close button in charmap, fix arrows in listboxes, add and position dashicons to the menu (when visible), see #26952 2014-03-12 08:19:14 +00:00
compat3x TinyMCE: update to 4.0.20, see #24067 2014-03-19 04:46:15 +00:00
directionality TinyMCE: update to 4.0.20, see #24067 2014-03-19 04:46:15 +00:00
fullscreen TinyMCE 4.0.12, first run. 2013-12-28 23:53:15 +00:00
hr TinyMCE: update to 4.0.20, see #24067 2014-03-19 04:46:15 +00:00
image TinyMCE: update to 4.0.18, see #24067 2014-03-04 01:57:15 +00:00
media TinyMCE: update to 4.0.20, see #24067 2014-03-19 04:46:15 +00:00
paste TinyMCE: update to 4.0.20, see #24067 2014-03-19 04:46:15 +00:00
tabfocus TinyMCE: update to 4.0.20, see #24067 2014-03-19 04:46:15 +00:00
textcolor TinyMCE: update to 4.0.20, see #24067 2014-03-19 04:46:15 +00:00
wordpress TinyMCE show/hide toolbar row: fix the value for `getUserSetting('hidetb')`: 0 == hidden, 1 == visible, see #24067 2014-03-19 02:30:15 +00:00
wpdialogs Update the versions of several `devDependencies` in `package.json`. `grunt-cssjanus` has been updated to `0.2.2`, we no longer need the fork. Run `npm install` to receive updates for `node_modules` in the project root. 2014-01-29 04:43:30 +00:00
wpeditimage Introduce HTML5 caption support. 2014-03-24 02:05:14 +00:00
wpfullscreen TinyMCE modals: re-enable the Close button in charmap, fix arrows in listboxes, add and position dashicons to the menu (when visible), see #26952 2014-03-12 08:19:14 +00:00
wpgallery Unifying media controls and supporting playlists in the editor: 2014-03-20 13:33:14 +00:00
wplink TinyMCE: add Ctrl+K, the "de-facto standard" shortcut to open wpLink, fixes #27305 2014-03-07 03:09:14 +00:00
wpview wpView: select/deselect views when moving the caret with the arrow keys, don't move the caret after deselect(), props gcorne, see #26959 2014-03-20 02:48:14 +00:00