Ticket #48028: 48028.2.patch
| File 48028.2.patch, 1.1 KB (added by , 7 years ago) |
|---|
-
src/js/media/views/frame/select.js
58 58 }; 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. 63 73 */ … … 76 86 multiple: options.multiple, 77 87 title: options.title, 78 88 priority: 20 79 }) 89 }), 90 new wp.media.controller.EditImage( { model: options.editImage, } ), 80 91 ]); 81 92 }, 82 93 … … 91 102 this.on( 'content:create:browse', this.browseContent, this ); 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 96 108 /**