Changeset 28689
- Timestamp:
- 06/06/2014 02:21:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/mce-view.js
r28680 r28689 77 77 register: function( type, constructor ) { 78 78 var defaultConstructor = { 79 type: type,79 shortcode: type, 80 80 View: {}, 81 81 toView: function( content ) { 82 var match = wp.shortcode.next( this. type, content );82 var match = wp.shortcode.next( this.shortcode, content ); 83 83 84 84 if ( ! match ) { … … 482 482 */ 483 483 wp.mce.views.register( 'video', _.extend( {}, wp.mce.av, { 484 shortcode: 'video',485 484 state: 'video-details', 486 485 View: _.extend( {}, wp.mce.av.View, { … … 495 494 */ 496 495 wp.mce.views.register( 'audio', _.extend( {}, wp.mce.av, { 497 shortcode: 'audio',498 496 state: 'audio-details', 499 497 View: _.extend( {}, wp.mce.av.View, { … … 508 506 */ 509 507 wp.mce.views.register( 'playlist', _.extend( {}, wp.mce.av, { 510 shortcode: 'playlist',511 508 state: ['playlist-edit', 'video-playlist-edit'], 512 509 View: _.extend( {}, wp.media.mixin, { … … 639 636 */ 640 637 wp.mce.views.register( 'embed', { 641 shortcode: 'embed',642 638 View: _.extend( {}, wp.media.mixin, { 643 639 template: media.template( 'editor-embed' ),
Note: See TracChangeset
for help on using the changeset viewer.