Changeset 19084
- Timestamp:
- 10/28/2011 11:29:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/quicktags.dev.js
r18766 r19084 56 56 57 57 /** 58 * In derts content at the caret in the active editor (textarea)58 * Inserts content at the caret in the active editor (textarea) 59 59 * 60 60 * Added for back compatibility … … 306 306 * 307 307 * 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 depend ant308 * To be able to add button(s) to Quicktags, your script should be enqueued as dependent 309 309 * on "quicktags" and outputted in the footer. If you are echoing JS directly from PHP, 310 310 * use add_action( 'admin_print_footer_scripts', 'output_my_js', 100 ) or add_action( 'wp_footer', 'output_my_js', 100 ) 311 311 * 312 * Minimu nrequired to add a button that calls an external function:312 * Minimum required to add a button that calls an external function: 313 313 * QTags.addButton( 'my_id', 'my button', my_callback ); 314 314 * function my_callback() { alert('yeah!'); } 315 315 * 316 * Minimu nrequired to add a button that inserts a tag:316 * Minimum required to add a button that inserts a tag: 317 317 * QTags.addButton( 'my_id', 'my button', '<span>', '</span>' ); 318 318 * QTags.addButton( 'my_id', 'my button', '<br />' );
Note: See TracChangeset
for help on using the changeset viewer.