Changeset 26987
- Timestamp:
- 01/21/2014 03:54:27 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-editor.js
r26984 r26987 22 22 * @global wp.media.view.settings.defaultProps 23 23 * 24 * @param {Object} props 25 * @param {Object} attachment 24 * @param {Object} props Attachment details (align, link, size, etc). 25 * @param {Object} attachment The attachment object, media version of Post. 26 26 * @returns {Object} Joined props 27 27 */ … … 103 103 * @global wp.html.string 104 104 * 105 * @param {Object} props 106 * @param {Object} attachment 105 * @param {Object} props Attachment details (align, link, size, etc). 106 * @param {Object} attachment The attachment object, media version of Post. 107 107 * @returns {string} The link markup 108 108 */ … … 129 129 * Create an Audio shortcode 130 130 * 131 * @param {Object} props 132 * @param {Object} attachment 131 * @param {Object} props Attachment details (align, link, size, etc). 132 * @param {Object} attachment The attachment object, media version of Post. 133 133 * @returns {string} The audio shortcode 134 134 */ … … 139 139 * Create a Video shortcode 140 140 * 141 * @param {Object} props 142 * @param {Object} attachment 141 * @param {Object} props Attachment details (align, link, size, etc). 142 * @param {Object} attachment The attachment object, media version of Post. 143 143 * @returns {string} The video shortcode 144 144 */ … … 155 155 * 156 156 * @param {string} type The shortcode tag name: 'audio' or 'video'. 157 * @param {Object} props 158 * @param {Object} attachment 157 * @param {Object} props Attachment details (align, link, size, etc). 158 * @param {Object} attachment The attachment object, media version of Post. 159 159 * @returns {string} The media shortcode 160 160 */ … … 200 200 * @global wp.shortcode 201 201 * 202 * @param {Object} props 203 * @param {Object} attachment 202 * @param {Object} props Attachment details (align, link, size, etc). 203 * @param {Object} attachment The attachment object, media version of Post. 204 204 * @returns {string} 205 205 */ … … 305 305 * @global wp.media.query 306 306 * 307 * @param {Object} shortcode 308 * @returns {Object} 307 * @param {wp.shortcode} shortcode 308 * @returns {wp.media.model.Attachments} A Backbone.Collection containing 309 * the images belonging to a gallery. The 'gallery' prop is a Backbone.Model 310 * containing the 'props' for the gallery. 309 311 */ 310 312 attachments: function( shortcode ) { … … 364 366 365 367 /** 368 * Triggered when clicking 'Insert Gallery' pr 'Update Gallery' 369 * 366 370 * @global wp.shortcode 367 371 * @global wp.media.model.Attachments 368 372 * 369 * @param {Object} attachments 373 * @param {wp.media.model.Attachments} attachments A Backbone.Collection containing 374 * the images belonging to a gallery. The 'gallery' prop is a Backbone.Model 375 * containing the 'props' for the gallery. 370 376 * @returns {wp.shortcode} 371 377 */ … … 429 435 }, 430 436 /** 437 * Triggered when double-clicking a Gallery shortcode placeholder 438 * in the editor 439 * 431 440 * @global wp.shortcode 432 441 * @global wp.media.model.Selection … … 434 443 * 435 444 * @param {string} content 436 * @returns {wp.media.view.MediaFrame } A media workflow.445 * @returns {wp.media.view.MediaFrame.Select} A media workflow. 437 446 */ 438 447 edit: function( content ) { … … 500 509 * @global wp.media.view.settings 501 510 * 502 * @returns {wp.media.view.settings.post.featuredImageId| Number}511 * @returns {wp.media.view.settings.post.featuredImageId|number} 503 512 */ 504 513 get: function() { … … 535 544 * @global wp.media.view.l10n 536 545 * 537 * @returns {wp.media.view.MediaFrame } A media workflow.546 * @returns {wp.media.view.MediaFrame.Select} A media workflow. 538 547 */ 539 548 frame: function() { … … 600 609 * @global tinymce 601 610 * @global QTags 611 * @global wpActiveEditor 602 612 * 603 613 * @param {string} html … … 648 658 * @param {Object} [options={}] 649 659 * 650 * @returns {wp.media.view.MediaFrame } A media workflow.660 * @returns {wp.media.view.MediaFrame.Select} A media workflow. 651 661 */ 652 662 add: function( id, options ) { … … 731 741 * @global tinymce 732 742 * 733 * @param {string} id734 * @returns {wpActiveEditor| String|tinymce.activeEditor.id}743 * @param {string} [id=''] 744 * @returns {wpActiveEditor|string|tinymce.activeEditor.id} 735 745 */ 736 746 id: function( id ) { … … 773 783 send: { 774 784 /** 785 * Called when sending an attachment to the editor 786 * from the medial modal. 787 * 775 788 * @global wp.media.view.settings 776 789 * @global wp.media.post 777 790 * 778 * @param {Object} props 779 * @param {Object} attachment 791 * @param {Object} props Attachment details (align, link, size, etc). 792 * @param {Object} attachment The attachment object, media version of Post. 780 793 * @returns {Promise} 781 794 */ … … 829 842 }, 830 843 /** 844 * Called when 'Insert From URL' source is not an image. Example: YouTube url. 845 * 831 846 * @global wp.media.view.settings 832 847 *
Note: See TracChangeset
for help on using the changeset viewer.