- Timestamp:
- 07/13/2012 12:26:49 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js
r20054 r21266 10 10 11 11 init : function(ed, url) { 12 var t = this, tbId = ed.getParam('wordpress_adv_toolbar', 'toolbar2'), last = 0, moreHTML, nextpageHTML, closeOnClick ;12 var t = this, tbId = ed.getParam('wordpress_adv_toolbar', 'toolbar2'), last = 0, moreHTML, nextpageHTML, closeOnClick, mod_key; 13 13 moreHTML = '<img src="' + url + '/img/trans.gif" class="mceWPmore mceItemNoResize" title="'+ed.getLang('wordpress.wp_more_alt')+'" />'; 14 14 nextpageHTML = '<img src="' + url + '/img/trans.gif" class="mceWPnextpage mceItemNoResize" title="'+ed.getLang('wordpress.wp_page_alt')+'" />'; … … 75 75 76 76 tb_show('', link.href); 77 tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' );78 77 }); 79 78 … … 251 250 252 251 // Add custom shortcuts 253 ed.addShortcut('alt+shift+c', ed.getLang('justifycenter_desc'), 'JustifyCenter'); 254 ed.addShortcut('alt+shift+r', ed.getLang('justifyright_desc'), 'JustifyRight'); 255 ed.addShortcut('alt+shift+l', ed.getLang('justifyleft_desc'), 'JustifyLeft'); 256 ed.addShortcut('alt+shift+j', ed.getLang('justifyfull_desc'), 'JustifyFull'); 257 ed.addShortcut('alt+shift+q', ed.getLang('blockquote_desc'), 'mceBlockQuote'); 258 ed.addShortcut('alt+shift+u', ed.getLang('bullist_desc'), 'InsertUnorderedList'); 259 ed.addShortcut('alt+shift+o', ed.getLang('numlist_desc'), 'InsertOrderedList'); 260 ed.addShortcut('alt+shift+d', ed.getLang('striketrough_desc'), 'Strikethrough'); 261 ed.addShortcut('alt+shift+n', ed.getLang('spellchecker.desc'), 'mceSpellCheck'); 262 ed.addShortcut('alt+shift+a', ed.getLang('link_desc'), 'mceLink'); 263 ed.addShortcut('alt+shift+s', ed.getLang('unlink_desc'), 'unlink'); 264 ed.addShortcut('alt+shift+m', ed.getLang('image_desc'), 'WP_Medialib'); 265 ed.addShortcut('alt+shift+g', ed.getLang('fullscreen.desc'), 'mceFullScreen'); 266 ed.addShortcut('alt+shift+z', ed.getLang('wp_adv_desc'), 'WP_Adv'); 267 ed.addShortcut('alt+shift+h', ed.getLang('help_desc'), 'WP_Help'); 268 ed.addShortcut('alt+shift+t', ed.getLang('wp_more_desc'), 'WP_More'); 269 ed.addShortcut('alt+shift+p', ed.getLang('wp_page_desc'), 'WP_Page'); 270 ed.addShortcut('ctrl+s', ed.getLang('save_desc'), function(){if('function'==typeof autosave)autosave();}); 271 272 if ( tinymce.isWebKit ) { 273 ed.addShortcut('alt+shift+b', ed.getLang('bold_desc'), 'Bold'); 274 ed.addShortcut('alt+shift+i', ed.getLang('italic_desc'), 'Italic'); 275 } 276 252 mod_key = 'alt'; 253 254 if ( tinymce.isIE || tinymce.isOpera ) 255 mod_key = 'shift+alt'; 256 257 ed.addShortcut(mod_key + '+c', 'justifycenter_desc', 'JustifyCenter'); 258 ed.addShortcut(mod_key + '+r', 'justifyright_desc', 'JustifyRight'); 259 ed.addShortcut(mod_key + '+l', 'justifyleft_desc', 'JustifyLeft'); 260 ed.addShortcut(mod_key + '+j', 'justifyfull_desc', 'JustifyFull'); 261 ed.addShortcut(mod_key + '+q', 'blockquote_desc', 'mceBlockQuote'); 262 ed.addShortcut(mod_key + '+u', 'bullist_desc', 'InsertUnorderedList'); 263 ed.addShortcut(mod_key + '+o', 'numlist_desc', 'InsertOrderedList'); 264 ed.addShortcut(mod_key + '+n', 'spellchecker.desc', 'mceSpellCheck'); 265 ed.addShortcut(mod_key + '+a', 'link_desc', 'WP_Link'); 266 ed.addShortcut(mod_key + '+s', 'unlink_desc', 'unlink'); 267 ed.addShortcut(mod_key + '+m', 'image_desc', 'WP_Medialib'); 268 ed.addShortcut(mod_key + '+z', 'wordpress.wp_adv_desc', 'WP_Adv'); 269 ed.addShortcut(mod_key + '+t', 'wordpress.wp_more_desc', 'WP_More'); 270 ed.addShortcut(mod_key + '+d', 'striketrough_desc', 'Strikethrough'); 271 ed.addShortcut(mod_key + '+h', 'help_desc', 'WP_Help'); 272 ed.addShortcut(mod_key + '+p', 'wordpress.wp_page_desc', 'WP_Page'); 273 ed.addShortcut(mod_key + '+w', 'wordpress.wp_fullscreen_desc', 'wpFullScreen'); 274 ed.addShortcut(mod_key + '+g', 'fullscreen.desc', 'mceFullScreen'); 275 ed.addShortcut('ctrl+s', 'save_desc', function(){if('function'==typeof autosave)autosave();}); 276 277 // popup buttons for images and the gallery 277 278 ed.onInit.add(function(ed) { 278 279 tinymce.dom.Event.add(ed.getWin(), 'scroll', function(e) {
Note: See TracChangeset
for help on using the changeset viewer.