Changeset 32142
- Timestamp:
- 04/18/2015 11:28:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wpemoji/plugin.js
r31948 r32142 1 ( function( tinymce, wp , twemoji) {1 ( function( tinymce, wp ) { 2 2 tinymce.PluginManager.add( 'wpemoji', function( editor ) { 3 3 var typing, … … 40 40 var selection, bookmark; 41 41 42 if ( node && twemoji.test( node.textContent || node.innerText ) ) {42 if ( node && window.twemoji && window.twemoji.test( node.textContent || node.innerText ) ) { 43 43 if ( env.webkit ) { 44 44 selection = editor.selection; … … 84 84 node = selection.getNode(); 85 85 86 if ( twemoji.test( node.textContent || node.innerText ) ) {86 if ( window.twemoji && window.twemoji.test( node.textContent || node.innerText ) ) { 87 87 replaceEmoji( node ); 88 88 … … 97 97 // Convert Twemoji compatible pasted emoji replacement images into our format. 98 98 editor.on( 'PastePostProcess', function( event ) { 99 if ( twemoji ) {99 if ( window.twemoji ) { 100 100 tinymce.each( editor.dom.$( 'img.emoji', event.node ), function( image ) { 101 if ( image.alt && twemoji.test( image.alt ) ) {101 if ( image.alt && window.twemoji.test( image.alt ) ) { 102 102 setImgAttr( image ); 103 103 } … … 126 126 } ); 127 127 } ); 128 } )( window.tinymce, window.wp , window.twemoji);128 } )( window.tinymce, window.wp );
Note: See TracChangeset
for help on using the changeset viewer.