wp/wp-includes/js/tinymce/plugins/wpemoji/plugin.js
changeset 9 177826044cd9
parent 7 cf61fcea0001
child 16 a86126ab1dd4
equal deleted inserted replaced
8:c7c34916027a 9:177826044cd9
     1 ( function( tinymce, wp, settings ) {
     1 ( function( tinymce ) {
     2 	tinymce.PluginManager.add( 'wpemoji', function( editor ) {
     2 	tinymce.PluginManager.add( 'wpemoji', function( editor ) {
     3 		var typing,
     3 		var typing,
       
     4 			wp = window.wp,
       
     5 			settings = window._wpemojiSettings,
     4 			env = tinymce.Env,
     6 			env = tinymce.Env,
     5 			ua = window.navigator.userAgent,
     7 			ua = window.navigator.userAgent,
     6 			isWin = ua.indexOf( 'Windows' ) > -1,
     8 			isWin = ua.indexOf( 'Windows' ) > -1,
     7 			isWin8 = ( function() {
     9 			isWin8 = ( function() {
     8 				var match = ua.match( /Windows NT 6\.(\d)/ );
    10 				var match = ua.match( /Windows NT 6\.(\d)/ );
   123 			if ( event.target.nodeName === 'IMG' && editor.dom.getAttrib( event.target, 'data-wp-emoji' ) ) {
   125 			if ( event.target.nodeName === 'IMG' && editor.dom.getAttrib( event.target, 'data-wp-emoji' ) ) {
   124 				event.preventDefault();
   126 				event.preventDefault();
   125 			}
   127 			}
   126 		} );
   128 		} );
   127 	} );
   129 	} );
   128 } )( window.tinymce, window.wp, window._wpemojiSettings );
   130 } )( window.tinymce );