Changeset 29521
- Timestamp:
- 08/17/2014 08:10:16 PM (11 years ago)
- Location:
- trunk/src/wp-includes/js/tinymce/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
r29471 r29521 550 550 551 551 if ( 'ontouchend' in document ) { 552 editor.on( 'touchend', edit );553 554 552 editor.on( 'click', function( event ) { 555 553 var target = event.target; … … 564 562 } 565 563 }); 566 } else {567 editor.on( 'mouseup', edit ); 568 }564 } 565 566 editor.on( 'mouseup touchend', edit ); 569 567 570 568 editor.on( 'init', function() { -
trunk/src/wp-includes/js/tinymce/plugins/wpview/plugin.js
r29463 r29521 12 12 firstFocus = true, 13 13 _noop = function() { return false; }, 14 is TouchDevice = ( 'ontouchend' in document ),14 isios = /iPad|iPod|iPhone/.test( navigator.userAgent ), 15 15 cursorInterval, lastKeyDownNode, setViewCursorTries, focus, execCommandView; 16 16 … … 142 142 143 143 // select the hidden div 144 if ( is TouchDevice) {144 if ( isios ) { 145 145 editor.selection.select( clipboard ); 146 146 } else { … … 299 299 300 300 editor.on( 'mousedown mouseup click touchend', function( event ) { 301 var view = getView( event.target ), 302 type = isTouchDevice ? 'touchend' : 'mousedown'; 301 var view = getView( event.target ); 303 302 304 303 firstFocus = false; … … 309 308 event.preventDefault(); 310 309 311 if ( event.type === type&& ! event.metaKey && ! event.ctrlKey ) {310 if ( ( event.type === 'touchend' || event.type === 'mousedown' ) && ! event.metaKey && ! event.ctrlKey ) { 312 311 if ( editor.dom.hasClass( event.target, 'edit' ) ) { 313 312 wp.mce.views.edit( view ); … … 330 329 return false; 331 330 } else { 332 if ( event.type === type) {331 if ( event.type === 'touchend' || event.type === 'mousedown' ) { 333 332 deselect(); 334 333 }
Note: See TracChangeset
for help on using the changeset viewer.