mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 06:42:56 +02:00
TinyMCE: add lang attribute
This is needed to make `hyphens: auto;` work correctly. Fixes #32555. Built from https://develop.svn.wordpress.org/trunk@35217 git-svn-id: http://core.svn.wordpress.org/trunk@35183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ef01315cac
commit
bafdd96ebf
@ -543,6 +543,7 @@ final class _WP_Editors {
|
||||
'wpeditimage_disable_captions' => $no_captions,
|
||||
'wpeditimage_html5_captions' => current_theme_supports( 'html5', 'caption' ),
|
||||
'plugins' => implode( ',', $plugins ),
|
||||
'wp_lang_attr' => get_bloginfo( 'language' )
|
||||
);
|
||||
|
||||
if ( ! empty( $mce_external_plugins ) ) {
|
||||
|
@ -428,6 +428,8 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
|
||||
dom.setAttrib( doc.documentElement, 'dir', 'rtl' );
|
||||
}
|
||||
|
||||
dom.setAttrib( doc.documentElement, 'lang', editor.getParam( 'wp_lang_attr' ) );
|
||||
|
||||
if ( env.ie ) {
|
||||
if ( parseInt( env.ie, 10 ) === 9 ) {
|
||||
bodyClass.push('ie9');
|
||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-35216';
|
||||
$wp_version = '4.4-alpha-35217';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user