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:
parent
6368ee0c6a
commit
992cc2e796
@ -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 = $(),
|
||||
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user