Changeset 37906
- Timestamp:
- 06/29/2016 09:41:50 AM (8 years ago)
- Location:
- trunk/src/wp-includes/js/tinymce/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
r37559 r37906 541 541 u: 'InsertUnorderedList', 542 542 o: 'InsertOrderedList', 543 s: 'unlink',544 543 m: 'WP_Medialib', 545 544 z: 'WP_Adv', -
trunk/src/wp-includes/js/tinymce/plugins/wplink/plugin.js
r37741 r37906 301 301 inputInstance.reset(); 302 302 removePlaceholders(); 303 editor.focus(); 304 editToolbar.tempHide = false; 305 } 306 } ); 307 308 // WP default shortcut 303 } 304 } ); 305 306 editor.addCommand( 'wp_unlink', function() { 307 editor.execCommand( 'unlink' ); 308 editToolbar.tempHide = false; 309 editor.execCommand( 'wp_link_cancel' ); 310 } ); 311 312 // WP default shortcuts 309 313 editor.addShortcut( 'access+a', '', 'WP_Link' ); 314 editor.addShortcut( 'access+s', '', 'wp_unlink' ); 310 315 // The "de-facto standard" shortcut, see #27305 311 316 editor.addShortcut( 'meta+k', '', 'WP_Link' ); … … 368 373 // set a flag to not focus the inline dialog. The editor has to remain focused so the users can do consecutive undo/redo. 369 374 editor.on( 'keydown', function( event ) { 375 if ( event.keyCode === 27 ) { // Esc 376 editor.execCommand( 'wp_link_cancel' ); 377 } 378 370 379 if ( event.altKey || ( tinymce.Env.mac && ( ! event.metaKey || event.ctrlKey ) ) || 371 380 ( ! tinymce.Env.mac && ! event.ctrlKey ) ) { … … 561 570 } 562 571 } 572 } else { 573 editor.execCommand( 'wp_link_cancel' ); 563 574 } 564 575 } ); … … 573 584 tooltip: 'Remove', 574 585 icon: 'dashicon dashicons-no', 575 cmd: ' unlink'586 cmd: 'wp_unlink' 576 587 } ); 577 588
Note: See TracChangeset
for help on using the changeset viewer.