WordPress.org

Plugin Directory

Changeset 412133 for jetpack


Ignore:
Timestamp:
07/19/11 18:49:37 (3 years ago)
Author:
mdawaffe
Message:

Add spellcheck to DFW

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/after-the-deadline.php

    r377084 r412133  
    210210     
    211211    return false; 
    212 }  
     212} 
     213 
     214// add button to DFW 
     215add_filter( 'wp_fullscreen_buttons', 'AtD_fullscreen' ); 
     216function AtD_fullscreen($buttons) { 
     217    $buttons['spellchecker'] = array( 'title' => __('Proofread Writing'), 'onclick' => "tinyMCE.execCommand('mceWritingImprovementTool');", 'both' => false ); 
     218 
     219    return $buttons; 
     220} 
    213221 
    214222/* add some vars into the AtD plugin */ 
Note: See TracChangeset for help on using the changeset viewer.