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.

git-svn-id: https://develop.svn.wordpress.org/trunk@32336 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2015-05-03 20:17:38 +00:00
parent 6368ee0c6a
commit 992cc2e796
2 changed files with 6 additions and 2 deletions

View File

@ -15,7 +15,7 @@
$visualEditor = $(),
$textTop = $( '#ed_toolbar' ),
$textEditor = $( '#content' ),
$textEditorClone = $( '<div id="content-textarea-clone"></div>' ),
$textEditorClone = $( '<div id="content-textarea-clone" class="wp-no-emoji"></div>' ),
$bottom = $( '#post-status-info' ),
$menuBar = $(),
$statusBar = $(),

View File

@ -70,7 +70,11 @@
node = node.parentNode;
}
if ( node && node.nodeType === 1 && test( node.textContent ) ) {
if ( ! node || ( node.className && node.className.indexOf( 'wp-no-emoji' ) !== -1 ) ) {
continue;
}
if ( node.nodeType === 1 && test( node.textContent ) ) {
parse( node );
}
}