mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-25 17:51:27 +01:00
TinyMCE: fix "flickering inline toolbar" in Chrome in RTL mode by not showing tooltips while an inline toolbar is shown.
Fixes #42018. Built from https://develop.svn.wordpress.org/trunk@41643 git-svn-id: http://core.svn.wordpress.org/trunk@41477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
79ffa7ff2a
commit
8fc05d8fba
@ -762,6 +762,11 @@ div.mce-menu .mce-menu-item-sep,
|
|||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Don't show the tooltip. Used in Chrome RTL, see #42018 */
|
||||||
|
.rtl .mce-tooltip.wp-hide-mce-tooltip {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.mce-tooltip-inner {
|
.mce-tooltip-inner {
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
box-shadow: 0 3px 5px rgba( 0, 0, 0, 0.2 );
|
box-shadow: 0 3px 5px rgba( 0, 0, 0, 0.2 );
|
||||||
|
2
wp-includes/css/editor-rtl.min.css
vendored
2
wp-includes/css/editor-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -762,6 +762,11 @@ div.mce-menu .mce-menu-item-sep,
|
|||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Don't show the tooltip. Used in Chrome RTL, see #42018 */
|
||||||
|
.rtl .mce-tooltip.wp-hide-mce-tooltip {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.mce-tooltip-inner {
|
.mce-tooltip-inner {
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
box-shadow: 0 3px 5px rgba( 0, 0, 0, 0.2 );
|
box-shadow: 0 3px 5px rgba( 0, 0, 0, 0.2 );
|
||||||
|
2
wp-includes/css/editor.min.css
vendored
2
wp-includes/css/editor.min.css
vendored
File diff suppressed because one or more lines are too long
@ -685,7 +685,8 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
|
|||||||
mceIframe = document.getElementById( editor.id + '_ifr' ),
|
mceIframe = document.getElementById( editor.id + '_ifr' ),
|
||||||
mceToolbar,
|
mceToolbar,
|
||||||
mceStatusbar,
|
mceStatusbar,
|
||||||
wpStatusbar;
|
wpStatusbar,
|
||||||
|
isChromeRtl = ( editor.rtl && /Chrome/.test( navigator.userAgent ) );
|
||||||
|
|
||||||
if ( container ) {
|
if ( container ) {
|
||||||
mceToolbar = tinymce.$( '.mce-toolbar-grp', container )[0];
|
mceToolbar = tinymce.$( '.mce-toolbar-grp', container )[0];
|
||||||
@ -929,6 +930,16 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
|
|||||||
|
|
||||||
toolbar.on( 'show', function() {
|
toolbar.on( 'show', function() {
|
||||||
this.reposition();
|
this.reposition();
|
||||||
|
|
||||||
|
if ( isChromeRtl ) {
|
||||||
|
tinymce.$( '.mce-widget.mce-tooltip' ).addClass( 'wp-hide-mce-tooltip' );
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
toolbar.on( 'hide', function() {
|
||||||
|
if ( isChromeRtl ) {
|
||||||
|
tinymce.$( '.mce-widget.mce-tooltip' ).removeClass( 'wp-hide-mce-tooltip' );
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
toolbar.on( 'keydown', function( event ) {
|
toolbar.on( 'keydown', function( event ) {
|
||||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-41642';
|
$wp_version = '4.9-alpha-41643';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user