Changeset 27545
- Timestamp:
- 03/14/2014 10:42:59 PM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/css/editor.css
r27532 r27545 662 662 } 663 663 664 .mce-i-wp_code:before { 665 content: "\e017"; 666 } 667 664 668 /* Editors */ 665 669 .wp-editor-wrap { -
trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
r27531 r27545 194 194 }); 195 195 196 editor.addCommand( 'WP_Code', function() { 197 editor.formatter.toggle('code'); 198 }); 199 196 200 editor.addCommand( 'WP_Page', function() { 197 201 editor.execCommand( 'WP_More', 'nextpage' ); … … 231 235 tooltip: 'Help', 232 236 cmd: 'WP_Help' 237 }); 238 239 editor.addButton( 'wp_code', { 240 tooltip: 'Code', 241 cmd: 'WP_Code', 242 stateSelector: 'code' 233 243 }); 234 244 … … 443 453 editor.addShortcut( modKey + '+h', '', 'WP_Help' ); 444 454 editor.addShortcut( modKey + '+p', '', 'WP_Page' ); 455 editor.addShortcut( modKey + '+x', '', 'WP_Code' ); 445 456 editor.addShortcut( 'ctrl+s', '', function() { 446 457 if ( typeof wp !== 'undefined' && wp.autosave ) {
Note: See TracChangeset
for help on using the changeset viewer.