Make WordPress Core

Changeset 32362


Ignore:
Timestamp:
05/06/2015 02:24:44 AM (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.
Fixes #32197 for 4.2.

Location:
branches/4.2/src
Files:
2 edited

Legend:

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

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

    r32361 r32362  
    6969                            if ( node.nodeType === 3 ) {
    7070                                node = node.parentNode;
     71                            }
     72
     73                            if ( ! node || ( node.className && node.className.indexOf( 'wp-exclude-emoji' ) !== -1 ) ) {
     74                                continue;
    7175                            }
    7276
Note: See TracChangeset for help on using the changeset viewer.