Fix QuickTags typos. props trepmal, fixes #19082.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-10-28 23:29:53 +00:00
parent 55fdf0eaaf
commit 2099147d4c
1 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ function quicktags(settings) {
} }
/** /**
* Inderts content at the caret in the active editor (textarea) * Inserts content at the caret in the active editor (textarea)
* *
* Added for back compatibility * Added for back compatibility
* @see QTags.insertContent() * @see QTags.insertContent()
@ -305,15 +305,15 @@ function edButton(id, display, tagStart, tagEnd, access, open) {
* Main API function for adding a button to Quicktags * Main API function for adding a button to Quicktags
* *
* Adds qt.Button or qt.TagButton depending on the args. The first three args are always required. * Adds qt.Button or qt.TagButton depending on the args. The first three args are always required.
* To be able to add button(s) to Quicktags, your script should be enqueued as dependant * To be able to add button(s) to Quicktags, your script should be enqueued as dependent
* on "quicktags" and outputted in the footer. If you are echoing JS directly from PHP, * on "quicktags" and outputted in the footer. If you are echoing JS directly from PHP,
* use add_action( 'admin_print_footer_scripts', 'output_my_js', 100 ) or add_action( 'wp_footer', 'output_my_js', 100 ) * use add_action( 'admin_print_footer_scripts', 'output_my_js', 100 ) or add_action( 'wp_footer', 'output_my_js', 100 )
* *
* Minimun required to add a button that calls an external function: * Minimum required to add a button that calls an external function:
* QTags.addButton( 'my_id', 'my button', my_callback ); * QTags.addButton( 'my_id', 'my button', my_callback );
* function my_callback() { alert('yeah!'); } * function my_callback() { alert('yeah!'); }
* *
* Minimun required to add a button that inserts a tag: * Minimum required to add a button that inserts a tag:
* QTags.addButton( 'my_id', 'my button', '<span>', '</span>' ); * QTags.addButton( 'my_id', 'my button', '<span>', '</span>' );
* QTags.addButton( 'my_id', 'my button', '<br />' ); * QTags.addButton( 'my_id', 'my button', '<br />' );
* *