Add an .html4-captions class to the editor when HTML5 captions are not supported, for theme use.
see #26642. git-svn-id: https://develop.svn.wordpress.org/trunk@27758 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c6c9eae522
commit
6b9eccd1f0
@ -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 ) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user