Emoji: Twemoji replacements weren't working in TinyMCE after [36816].
See #35300. git-svn-id: https://develop.svn.wordpress.org/trunk@36927 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
91513893c2
commit
17dc928316
@ -1,4 +1,4 @@
|
||||
( function( tinymce, wp ) {
|
||||
( function( tinymce, wp, settings ) {
|
||||
tinymce.PluginManager.add( 'wpemoji', function( editor ) {
|
||||
var typing,
|
||||
env = tinymce.Env,
|
||||
@ -14,7 +14,7 @@
|
||||
return false;
|
||||
}());
|
||||
|
||||
if ( ! wp || ! wp.emoji || ! wp.emoji.replaceEmoji ) {
|
||||
if ( ! wp || ! wp.emoji || settings.supports.everything ) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -125,4 +125,4 @@
|
||||
}
|
||||
} );
|
||||
} );
|
||||
} )( window.tinymce, window.wp );
|
||||
} )( window.tinymce, window.wp, window._wpemojiSettings );
|
||||
|
Loading…
Reference in New Issue
Block a user