I was struggling with a bug. All is fine with your plugin except one thing:
Enabling this plugin in my wordpress version (latest at today) suddenly introduce a bug: clicking in "edit image" for local blog images (I mean the regular Browse tab, not yours) does not work.
I fixed this changing your global-media.js file and reintroducing this to Select extend:
this.on('content:render:edit-image', this.editImageContent, this);
and then:
editImageContent: function() {
var image = this.state().get('image'),
view = new wp.media.view.EditImage( { model: image, controller: this } ).render();
this.content.set( view );
// After creating the wrapper view, load the actual editor via an Ajax call.
view.loadEditor();
},
I share this bugfix with you because I really appreciate your work <3
I was struggling with a bug. All is fine with your plugin except one thing:
Enabling this plugin in my wordpress version (latest at today) suddenly introduce a bug: clicking in "edit image" for local blog images (I mean the regular Browse tab, not yours) does not work.
I fixed this changing your global-media.js file and reintroducing this to Select extend:
this.on('content:render:edit-image', this.editImageContent, this);
and then:I share this bugfix with you because I really appreciate your work <3