Changeset 24052
- Timestamp:
- 04/22/2013 08:17:25 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-comment.php
r23955 r24052 64 64 <div id="postdiv" class="postarea"> 65 65 <?php 66 $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code, spell,close' );66 $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ); 67 67 wp_editor( $comment->comment_content, 'content', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) ); 68 68 wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> -
trunk/wp-admin/includes/media.php
r23979 r24052 2396 2396 2397 2397 <?php 2398 $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code, spell,close' );2398 $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ); 2399 2399 $editor_args = array( 2400 2400 'textarea_name' => 'content', -
trunk/wp-admin/includes/template.php
r24046 r24052 346 346 <div id="replycontainer"> 347 347 <?php 348 $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code, spell,close' );348 $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ); 349 349 wp_editor( '', 'replycontent', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) ); 350 350 ?> -
trunk/wp-includes/class-wp-editor.php
r23730 r24052 177 177 178 178 if ( empty($qtInit['buttons']) ) 179 $qtInit['buttons'] = 'strong,em,link,block,del,ins,img,ul,ol,li,code,more, spell,close';179 $qtInit['buttons'] = 'strong,em,link,block,del,ins,img,ul,ol,li,code,more,close'; 180 180 181 181 if ( $set['dfw'] ) -
trunk/wp-includes/js/quicktags.js
r21592 r24052 9 9 * id : 'my_id', the HTML ID of the textarea, required 10 10 * buttons: '' Comma separated list of the names of the default buttons to show. Optional. 11 * Current list of default button names: 'strong,em,link,block,del,ins,img,ul,ol,li,code,more, spell,close';11 * Current list of default button names: 'strong,em,link,block,del,ins,img,ul,ol,li,code,more,close'; 12 12 * } 13 13 * … … 230 230 qt._buttonsInit = function() { 231 231 var t = this, canvas, name, settings, theButtons, html, inst, ed, id, i, use, 232 defaults = ',strong,em,link,block,del,ins,img,ul,ol,li,code,more, spell,close,';232 defaults = ',strong,em,link,block,del,ins,img,ul,ol,li,code,more,close,'; 233 233 234 234 for ( inst in t.instances ) { … … 500 500 }; 501 501 502 // the spell button 503 qt.SpellButton = function() { 504 qt.Button.call(this, 'spell', quicktagsL10n.lookup, '', quicktagsL10n.dictionaryLookup); 505 }; 506 qt.SpellButton.prototype = new qt.Button(); 507 qt.SpellButton.prototype.callback = function(element, canvas, ed) { 508 var word = '', sel, startPos, endPos; 509 510 if ( document.selection ) { 511 canvas.focus(); 512 sel = document.selection.createRange(); 513 if ( sel.text.length > 0 ) { 514 word = sel.text; 515 } 516 } else if ( canvas.selectionStart || canvas.selectionStart == '0' ) { 517 startPos = canvas.selectionStart; 518 endPos = canvas.selectionEnd; 519 if ( startPos != endPos ) { 520 word = canvas.value.substring(startPos, endPos); 521 } 522 } 523 524 if ( word === '' ) { 525 word = prompt(quicktagsL10n.wordLookup, ''); 526 } 527 528 if ( word !== null && /^\w[\w ]*$/.test(word)) { 529 window.open('http://www.answers.com/' + encodeURIComponent(word)); 530 } 531 }; 502 // removed 503 qt.SpellButton = function() {}; 532 504 533 505 // the close tags button … … 644 616 edButtons[110] = new qt.TagButton('code','code','<code>','</code>','c'), 645 617 edButtons[120] = new qt.TagButton('more','more','<!--more-->','','t'), 646 edButtons[130] = new qt.SpellButton(),647 618 edButtons[140] = new qt.CloseButton() 648 619 -
trunk/wp-includes/script-loader.php
r24046 r24052 76 76 $scripts->add( 'quicktags', "/wp-includes/js/quicktags$suffix.js", array(), false, 1 ); 77 77 did_action( 'init' ) && $scripts->localize( 'quicktags', 'quicktagsL10n', array( 78 'wordLookup' => __('Enter a word to look up:'),79 'dictionaryLookup' => esc_attr(__('Dictionary lookup')),80 'lookup' => esc_attr(__('lookup')),81 78 'closeAllOpenTags' => esc_attr(__('Close all open tags')), 82 79 'closeTags' => esc_attr(__('close tags')),
Note: See TracChangeset
for help on using the changeset viewer.