Changeset 46461
- Timestamp:
- 10/11/2019 08:41:51 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/media/views/frame/select.js
r46355 r46461 59 59 }, 60 60 61 editImageContent: function() { 62 var image = this.state().get('image'), 63 view = new wp.media.view.EditImage( { model: image, controller: this } ).render(); 64 65 this.content.set( view ); 66 67 // after creating the wrapper view, load the actual editor via an ajax call 68 view.loadEditor(); 69 }, 70 61 71 /** 62 72 * Create the default states on the frame. … … 77 87 title: options.title, 78 88 priority: 20 79 }) 89 }), 90 new wp.media.controller.EditImage( { model: options.editImage } ) 80 91 ]); 81 92 }, … … 92 103 this.on( 'content:render:upload', this.uploadContent, this ); 93 104 this.on( 'toolbar:create:select', this.createSelectToolbar, this ); 105 this.on( 'content:render:edit-image', this.editImageContent, this ); 94 106 }, 95 107
Note: See TracChangeset
for help on using the changeset viewer.