Make WordPress Core

Changeset 32336


Ignore:
Timestamp:
05/03/2015 08:17:38 PM (9 years ago)
Author:
azaozz
Message:

Emoji: add an exclude class to wp-emoji checked when monitoring for changes with mutationObserver. Use it for the hidden div used for resizing the Text editor.
See #32197.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/editor-expand.js

    r31725 r32336  
    1616            $textTop = $( '#ed_toolbar' ),
    1717            $textEditor = $( '#content' ),
    18             $textEditorClone = $( '<div id="content-textarea-clone"></div>' ),
     18            $textEditorClone = $( '<div id="content-textarea-clone" class="wp-no-emoji"></div>' ),
    1919            $bottom = $( '#post-status-info' ),
    2020            $menuBar = $(),
  • trunk/src/wp-includes/js/wp-emoji.js

    r32335 r32336  
    7171                            }
    7272
    73                             if ( node && node.nodeType === 1 && test( node.textContent ) ) {
     73                            if ( ! node || ( node.className && node.className.indexOf( 'wp-no-emoji' ) !== -1 ) ) {
     74                                continue;
     75                            }
     76
     77                            if ( node.nodeType === 1 && test( node.textContent ) ) {
    7478                                parse( node );
    7579                            }
Note: See TracChangeset for help on using the changeset viewer.