Make WordPress Core

Changeset 27460


Ignore:
Timestamp:
03/08/2014 12:40:03 AM (11 years ago)
Author:
azaozz
Message:

Set minimum z-index for the TinyMCE modals and adjust the z-index in DFW, see #26952

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/media.css

    r27403 r27460  
    242242    bottom: 30px;
    243243    left: 50%;
    244     z-index: 160000;
     244    z-index: 100105;
    245245}
    246246
     
    358358    background: #000;
    359359    opacity: 0.7;
    360     z-index: 159900;
     360    z-index: 100100;
    361361}
    362362
  • trunk/src/wp-includes/css/editor.css

    r27289 r27460  
    1414#mce-modal-block.mce-in {
    1515    opacity: 0.7;
    16     z-index: 159900 !important; /* Overwrite inline style added by TinyMCE. */
    1716}
    1817
     
    2221    -webkit-box-shadow: 0 5px 15px rgba(0,0,0,0.7);
    2322    box-shadow: 0 5px 15px rgba(0,0,0,0.7);
    24     z-index: 160000 !important; /* Overwrite inline style added by TinyMCE. */
    2523    -webkit-font-smoothing: subpixel-antialiased;
    2624}
     
    838836    position: absolute;
    839837    display: none;
    840     z-index: 155000;
     838    z-index: 100020;
    841839}
    842840
     
    14751473-------------------------------------------------------------- */
    14761474.fullscreen-overlay {
    1477     z-index: 149999;
     1475    z-index: 100005;
    14781476    display: none;
    14791477    position: fixed;
     
    15031501
    15041502#wp-fullscreen-body {
    1505     z-index: 150005;
     1503    z-index: 100010;
    15061504    display: none;
    15071505}
     
    15151513    bottom: 30px;
    15161514    top: 60px;
    1517     z-index: 150010;
     1515    z-index: 100015;
    15181516
    15191517}
     
    15811579    top: 0;
    15821580    width: 100%;
    1583     z-index: 150050;
     1581    z-index: 100020;
    15841582    -webkit-transition: opacity 0.4s;
    15851583    transition: opacity 0.4s;
     
    17201718-------------------------------------------------------------- */
    17211719.wp-fullscreen-active #TB_overlay {
    1722     z-index: 150100;
     1720    z-index: 100050;
    17231721}
    17241722
    17251723.wp-fullscreen-active #TB_window {
    1726     z-index: 150102;
    1727 }
    1728 
    1729 /* =TinyMCE Adjustments
    1730 -------------------------------------------------------------- */
    1731 .wp-fullscreen-active #mce-modal-block {
    1732     z-index: 150100 !important;
    1733 }
    1734 
    1735 .wp-fullscreen-active .mce-window {
    1736     z-index: 150102 !important;
     1724    z-index: 100051;
    17371725}
    17381726
  • trunk/src/wp-includes/css/jquery-ui-dialog.css

    r27174 r27460  
    253253.wp-dialog {
    254254    padding: 0;
    255     z-index: 300002;
     255    z-index: 100102;
    256256    border: 0;
    257257    -webkit-box-shadow: 0 5px 15px rgba(0,0,0,0.7);
     
    313313
    314314.ui-widget-overlay {
    315     z-index: 300001;
     315    z-index: 100101;
    316316    background-color: #000;
    317317    opacity: 0.6;
  • trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js

    r27449 r27460  
    1 /* global tinymce, getUserSetting, setUserSetting, switchEditors */
     1/* global tinymce, getUserSetting, setUserSetting */
     2
     3// Set the minimum value for the modals z-index higher than #wpadminbar (100000)
     4tinymce.ui.FloatPanel.zIndex = 100100;
     5
    26tinymce.PluginManager.add( 'wordpress', function( editor ) {
    37    var DOM = tinymce.DOM, wpAdvButton, modKey, style,
     
    280284            deltax = 0,
    281285            bodyClass = ['mceContentBody'], // back-compat for themes that use this in editor-style.css...
    282             doc = editor.getDoc();
     286            doc = editor.getDoc(),
     287            dom = editor.dom;
    283288
    284289        if ( editor.getParam( 'directionality' ) === 'rtl' ) {
     
    300305        tinymce.each( bodyClass, function( cls ) {
    301306            if ( cls ) {
    302                 editor.dom.addClass( doc.body, cls );
     307                dom.addClass( doc.body, cls );
    303308            }
    304309        });
     
    319324        if ( ! ( 'ontouchstart' in window ) ) {
    320325            // When scrolling with mouse wheel or trackpad inside the editor, don't scroll the parent window
    321             editor.dom.bind( doc, 'onwheel' in doc ? 'wheel' : 'mousewheel', function( event ) {
     326            dom.bind( doc, 'onwheel' in doc ? 'wheel' : 'mousewheel', function( event ) {
    322327                var delta, top,
    323328                    docElement = doc.documentElement;
     
    371376            });
    372377        }
     378
     379        dom.bind( doc, 'dragover', function( event ) {
     380            if ( typeof window.jQuery !== 'undefined' ) {
     381                // Propagate the event to its container for the parent window to catch.
     382                window.jQuery( editor.getContainer() ).trigger( event );
     383            }
     384        });
    373385    });
    374386
     
    400412        e.content = e.content.replace( /<p>(<br ?\/?>|\u00a0|\uFEFF)?<\/p>/g, '<p>&nbsp;</p>' );
    401413
    402         if ( editor.getParam( 'wpautop', true ) && typeof switchEditors !== 'undefined' ) {
    403             e.content = switchEditors.pre_wpautop( e.content );
     414        if ( editor.getParam( 'wpautop', true ) && typeof window.switchEditors !== 'undefined' ) {
     415            e.content = window.switchEditors.pre_wpautop( e.content );
    404416        }
    405417    });
     
    443455            _hideButtons();
    444456        });
    445 
    446         editor.dom.bind( editor.getWin(), 'dragover', function(e) {
    447             if ( typeof window.jQuery !== 'undefined' ) {
    448                 // Propagate the event to its container for the parent window to catch.
    449                 jQuery( editor.getContainer() ).trigger(e);
    450             }
    451         });
    452457    });
    453458
Note: See TracChangeset for help on using the changeset viewer.