Make WordPress Core

Changeset 19084


Ignore:
Timestamp:
10/28/2011 11:29:53 PM (13 years ago)
Author:
nacin
Message:

Fix QuickTags typos. props trepmal, fixes #19082.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/quicktags.dev.js

    r18766 r19084  
    5656
    5757/**
    58  * Inderts content at the caret in the active editor (textarea)
     58 * Inserts content at the caret in the active editor (textarea)
    5959 *
    6060 * Added for back compatibility
     
    306306     *
    307307     * Adds qt.Button or qt.TagButton depending on the args. The first three args are always required.
    308      * To be able to add button(s) to Quicktags, your script should be enqueued as dependant
     308     * To be able to add button(s) to Quicktags, your script should be enqueued as dependent
    309309     * on "quicktags" and outputted in the footer. If you are echoing JS directly from PHP,
    310310     * use add_action( 'admin_print_footer_scripts', 'output_my_js', 100 ) or add_action( 'wp_footer', 'output_my_js', 100 )
    311311     *
    312      * Minimun required to add a button that calls an external function:
     312     * Minimum required to add a button that calls an external function:
    313313     *     QTags.addButton( 'my_id', 'my button', my_callback );
    314314     *     function my_callback() { alert('yeah!'); }
    315315     *
    316      * Minimun required to add a button that inserts a tag:
     316     * Minimum required to add a button that inserts a tag:
    317317     *     QTags.addButton( 'my_id', 'my button', '<span>', '</span>' );
    318318     *     QTags.addButton( 'my_id', 'my button', '<br />' );
Note: See TracChangeset for help on using the changeset viewer.