Ticket #29558: 29558.2.patch
File 29558.2.patch, 2.3 KB (added by , 10 years ago) |
---|
-
src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
4 4 tinymce.ui.FloatPanel.zIndex = 100100; 5 5 6 6 tinymce.PluginManager.add( 'wordpress', function( editor ) { 7 var DOM = tinymce.DOM, wpAdvButton, modKey,style,7 var DOM = tinymce.DOM, wpAdvButton, style, 8 8 last = 0; 9 9 10 10 if ( typeof window.jQuery !== 'undefined' ) { … … 410 410 } 411 411 }); 412 412 413 // Add custom shortcuts 414 modKey = 'alt+shift'; 413 tinymce.each( { 414 c: 'JustifyCenter', 415 r: 'JustifyRight', 416 l: 'JustifyLeft', 417 j: 'JustifyFull', 418 q: 'mceBlockQuote', 419 u: 'InsertUnorderedList', 420 o: 'InsertOrderedList', 421 n: 'mceSpellCheck', 422 s: 'unlink', 423 m: 'WP_Medialib', 424 z: 'WP_Adv', 425 t: 'WP_More', 426 d: 'Strikethrough', 427 h: 'WP_Help', 428 p: 'WP_Page', 429 x: 'WP_Code' 430 }, function( command, key ) { 431 editor.addShortcut( 'access+' + key, '', command ); 432 } ); 415 433 416 editor.addShortcut( modKey + '+c', '', 'JustifyCenter' );417 editor.addShortcut( modKey + '+r', '', 'JustifyRight' );418 editor.addShortcut( modKey + '+l', '', 'JustifyLeft' );419 editor.addShortcut( modKey + '+j', '', 'JustifyFull' );420 editor.addShortcut( modKey + '+q', '', 'mceBlockQuote' );421 editor.addShortcut( modKey + '+u', '', 'InsertUnorderedList' );422 editor.addShortcut( modKey + '+o', '', 'InsertOrderedList' );423 editor.addShortcut( modKey + '+n', '', 'mceSpellCheck' );424 editor.addShortcut( modKey + '+s', '', 'unlink' );425 editor.addShortcut( modKey + '+m', '', 'WP_Medialib' );426 editor.addShortcut( modKey + '+z', '', 'WP_Adv' );427 editor.addShortcut( modKey + '+t', '', 'WP_More' );428 editor.addShortcut( modKey + '+d', '', 'Strikethrough' );429 editor.addShortcut( modKey + '+h', '', 'WP_Help' );430 editor.addShortcut( modKey + '+p', '', 'WP_Page' );431 editor.addShortcut( modKey + '+x', '', 'WP_Code' );432 434 editor.addShortcut( 'ctrl+s', '', function() { 433 435 if ( typeof wp !== 'undefined' && wp.autosave ) { 434 436 wp.autosave.server.triggerSave(); 435 437 } 436 438 }); 437 439 438 440 /** 439 441 * Experimental: create a floating toolbar. 440 442 * This functionality will change in the next releases. Not recommennded for use by plugins. 441 */ 443 */ 442 444 ( function() { 443 445 var DOM = tinymce.DOM, 444 446 each = tinymce.each,