Ticket #36585: 36585.patch
File 36585.patch, 1.5 KB (added by , 8 years ago) |
---|
-
src/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js
62 62 if ( event.keyCode === VK.ENTER && ! VK.modifierPressed( event ) ) { 63 63 enter(); 64 64 } 65 }, true );66 65 67 editor.on( 'keyup', function( event ) {66 // Wait for the browser to insert the character. 68 67 if ( event.keyCode === VK.SPACEBAR && ! event.ctrlKey && ! event.metaKey && ! event.altKey ) { 69 s pace();68 setTimeout( space ); 70 69 } else if ( event.keyCode > 47 && ! ( event.keyCode >= 91 && event.keyCode <= 93 ) ) { 71 inline();70 setTimeout( inline ); 72 71 } 73 } );72 }, true ); 74 73 75 74 function inline() { 76 75 var rng = editor.selection.getRng(); -
tests/qunit/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js
116 116 var args = arguments; 117 117 118 118 setTimeout( function() { 119 setTimeout( function() { 119 120 if ( typeof args[0] === 'string' ) { 120 121 args[0] = args[0].split( '' ); 121 122 } … … 134 135 type.apply( null, args ); 135 136 } 136 137 } ); 138 } ); 137 139 } 138 140 139 141 QUnit.module( 'tinymce.plugins.wptextpattern', {