Changeset 45610
- Timestamp:
- 07/09/2019 01:09:53 AM (6 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/vendor/tinymce/plugins/wordpress/plugin.js
r45066 r45610 789 789 mceToolbar, 790 790 mceStatusbar, 791 wpStatusbar, 792 isChromeRtl = ( editor.rtl && /Chrome/.test( navigator.userAgent ) ); 791 wpStatusbar; 793 792 794 793 if ( container ) { … … 1041 1040 toolbar.on( 'show', function() { 1042 1041 this.reposition(); 1043 1044 if ( isChromeRtl ) {1045 tinymce.$( '.mce-widget.mce-tooltip' ).addClass( 'wp-hide-mce-tooltip' );1046 }1047 } );1048 1049 toolbar.on( 'hide', function() {1050 if ( isChromeRtl ) {1051 tinymce.$( '.mce-widget.mce-tooltip' ).removeClass( 'wp-hide-mce-tooltip' );1052 }1053 1042 } ); 1054 1043 … … 1141 1130 } 1142 1131 1143 editor.dom.bind( editor.getWin(), 'resize', hide );1144 1145 1132 if ( editor.inline ) { 1133 editor.on( 'resizewindow', hide ); 1134 1146 1135 // Enable `capture` for the event. 1147 1136 // This will hide/reposition the toolbar on any scrolling in the document. … … 1149 1138 } else { 1150 1139 editor.dom.bind( editor.getWin(), 'scroll', hide ); 1140 1151 1141 // For full height iframe editor. 1152 1142 editor.on( 'resizewindow scrollwindow', hide ); … … 1156 1146 document.removeEventListener( 'scroll', hide, true ); 1157 1147 editor.off( 'resizewindow scrollwindow', hide ); 1158 editor.dom.unbind( editor.getWin(), ' resizescroll', hide );1148 editor.dom.unbind( editor.getWin(), 'scroll', hide ); 1159 1149 } ); 1160 1150 -
trunk/src/wp-includes/css/editor.css
r45477 r45610 802 802 .mce-tooltip { 803 803 margin-top: 2px; 804 }805 806 /* Don't show the tooltip. Used in Chrome RTL, see #42018 */807 .rtl .mce-tooltip.wp-hide-mce-tooltip {808 display: none !important;809 804 } 810 805
Note: See TracChangeset
for help on using the changeset viewer.