[wp-trac] [WordPress Trac] #21811: Add image editing UI to the media modal

WordPress Trac noreply at wordpress.org
Mon Feb 3 21:06:37 UTC 2014


#21811: Add image editing UI to the media modal
------------------------------------+-----------------------------
 Reporter:  koopersmith             |       Owner:
     Type:  feature request         |      Status:  new
 Priority:  normal                  |   Milestone:  Future Release
Component:  Media                   |     Version:  3.5
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------------
Changes (by tomauger):

 * keywords:  has-patch => has-patch dev-feedback


Comment:

 The plugin above requires that you '''do not use the minified image-
 edit.js''' if you're using my patch, since I haven't minified that script
 yet.

 It demonstrates the following:
 - using the `add_image_editor_groups` action as a best practice for
 hooking in and modifying the Image Editor groups
 - using the `enqueue_image_editor_scripts` action as a best practice for
 hooking in js/css for your image editor plugin
 - using `remove_image_edit_group()` and `add_image_edit_group()`
 - leveraging the `imageEdit` `INIT_EVENT` and `OPEN_EVENT` to hook plugin
 js functionality into specific spots of the image editor workflow.

 ''Currently, this plugin does not actually perform the crop since that
 requires another modification to `wp_save_image()` and I didn't want to
 dilute this patch, in case there was a better approach to the crop issue
 that I hadn't considered. I will be uploading that patch subsequently.''

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21811#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list