Add an .html4-captions class to the editor when HTML5 captions are not supported, for theme use.

see #26642.

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


git-svn-id: http://core.svn.wordpress.org/trunk@27595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-03-26 23:13:15 +00:00
parent d67790d44e
commit bb129b90f0
4 changed files with 5 additions and 6 deletions

View File

@ -397,11 +397,10 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
}
editor.on( 'init', function() {
var dom = editor.dom;
var dom = editor.dom,
captionClass = editor.getParam( 'wpeditimage_html5_captions' ) ? 'html5-captions' : 'html4-captions';
if ( editor.getParam( 'wpeditimage_html5_captions' ) ) {
dom.addClass( editor.getBody(), 'html5-captions' );
}
dom.addClass( editor.getBody(), captionClass );
// Add caption field to the default image dialog
editor.on( 'wpLoadImageForm', function( event ) {

File diff suppressed because one or more lines are too long

View File

@ -18,7 +18,7 @@ $wp_db_version = 26691;
*
* @global string $tinymce_version
*/
$tinymce_version = '4020-20140319a';
$tinymce_version = '4020-20140326';
/**
* Holds the required PHP version