Ticket #38315: 38315.patch
| File 38315.patch, 3.4 KB (added by , 9 years ago) |
|---|
-
src/wp-includes/class-wp-editor.php
600 600 $mce_buttons = apply_filters( 'teeny_mce_buttons', array('bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'unlink', 'fullscreen'), $editor_id ); 601 601 $mce_buttons_2 = $mce_buttons_3 = $mce_buttons_4 = array(); 602 602 } else { 603 $mce_buttons = array( 'bold', 'italic', 'strikethrough', ' bullist', 'numlist', 'blockquote', 'hr', 'alignleft', 'aligncenter', 'alignright', 'link', 'unlink', 'wp_more', 'spellchecker' );603 $mce_buttons = array( 'bold', 'italic', 'strikethrough', 'wp_mark', 'bullist', 'numlist', 'blockquote', 'hr', 'alignleft', 'aligncenter', 'alignright', 'link', 'unlink', 'wp_more', 'spellchecker' ); 604 604 605 605 if ( ! wp_is_mobile() ) { 606 606 if ( $set['_content_editor_dfw'] ) { … … 622 622 */ 623 623 $mce_buttons = apply_filters( 'mce_buttons', $mce_buttons, $editor_id ); 624 624 625 $mce_buttons_2 = array( 'formatselect', ' underline', 'alignjustify', 'forecolor', 'pastetext', 'removeformat', 'charmap', 'outdent', 'indent', 'undo', 'redo' );625 $mce_buttons_2 = array( 'formatselect', 'alignjustify', 'forecolor', 'pastetext', 'removeformat', 'charmap', 'outdent', 'indent', 'undo', 'redo' ); 626 626 627 627 if ( ! wp_is_mobile() ) { 628 628 $mce_buttons_2[] = 'wp_help'; … … 1049 1049 'Apply' => __( 'Apply' ), // Tooltip for the 'apply' button in the inline link dialog 1050 1050 'Link options' => __( 'Link options' ), // Tooltip for the 'link options' button in the inline link dialog 1051 1051 1052 /* translators: as in marking/highlighting text */ 1053 'Mark' => _x( 'Mark', 'TinyMCE button' ), 1054 1052 1055 // Shortcuts help modal 1053 1056 'Keyboard Shortcuts' => __( 'Keyboard Shortcuts' ), 1054 1057 'Default shortcuts,' => __( 'Default shortcuts,' ), -
src/wp-includes/css/editor.css
888 888 i.mce-i-wp_page, 889 889 i.mce-i-hr, 890 890 i.mce-i-wp_code, 891 i.mce-i-wp_mark, 891 892 i.mce-i-dashicon, 892 893 i.mce-i-remove { 893 894 font: normal 20px/1 dashicons; … … 1041 1042 content: "\f475"; 1042 1043 } 1043 1044 1045 i.mce-i-wp_mark:before { 1046 content: "\f540"; 1047 } 1048 1044 1049 /* RTL button icons */ 1045 1050 .rtl i.mce-i-outdent:before { 1046 1051 content: "\f222"; -
src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
222 222 editor.formatter.toggle('code'); 223 223 }); 224 224 225 editor.addCommand( 'WP_Mark', function() { 226 editor.formatter.toggle('mark'); 227 }); 228 225 229 editor.addCommand( 'WP_Page', function() { 226 230 editor.execCommand( 'WP_More', 'nextpage' ); 227 231 }); … … 389 393 stateSelector: 'code' 390 394 }); 391 395 396 editor.addButton( 'wp_mark', { 397 tooltip: 'Mark', 398 cmd: 'WP_Mark', 399 stateSelector: 'mark' 400 }); 401 392 402 // Menubar 393 403 // Insert->Add Media 394 404 if ( wp && wp.media && wp.media.editor ) { … … 521 531 }); 522 532 }); 523 533 } 534 535 editor.formatter.register({ 536 mark: { inline: 'mark' } 537 }); 524 538 }); 525 539 526 540 editor.on( 'SaveContent', function( event ) {