Changeset 26983
- Timestamp:
- 01/19/2014 11:21:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
r26941 r26983 311 311 } 312 312 }); 313 314 if ( typeof window.jQuery !== 'undefined' ) { 315 window.jQuery( document ).triggerHandler( 'tinymce-editor-init', [editor] ); 316 } 313 317 }); 314 318 315 319 // Word count 316 if ( typeof jQuery !== 'undefined' ) {320 if ( typeof window.jQuery !== 'undefined' ) { 317 321 editor.on( 'keyup', function( e ) { 318 322 var key = e.keyCode || e.charCode; … … 323 327 324 328 if ( 13 === key || 8 === last || 46 === last ) { 325 jQuery(document).triggerHandler( 'wpcountwords', [ editor.getContent({ format : 'raw' }) ] );329 window.jQuery( document ).triggerHandler( 'wpcountwords', [ editor.getContent({ format : 'raw' }) ] ); 326 330 } 327 331
Note: See TracChangeset
for help on using the changeset viewer.