Opened 10 years ago
Closed 10 years ago
#27363 closed defect (bug) (fixed)
Image editing is broken in the Edit Gallery modal workflow
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | 3.9 |
Component: | Media | Keywords: | has-patch commit |
Focuses: | javascript | Cc: |
Description
When editing a gallery, if the user selects an image and clicks "edit image', the image editor doesn't load.
Instead, a lovely javascript error is thrown:
Uncaught TypeError: Cannot call method 'toJSON' of undefined
See http://wordpress.org/support/topic/39-beta-1-image-editing-in-created-gallery-nothing-found
Related to #21811
Attachments (1)
Change History (5)
#2
@
10 years ago
A related issue was posted in the Alpha/Beta forum that is also fixed by attachment:27363-01.patch.
This ticket was mentioned in IRC in #wordpress-ui by gcorne. View the logs.
10 years ago
Note: See
TracTickets for help on using
tickets.
This issue popped up because
selectionSync.syncSelection()
behaves differently when the selection supports multiple attachments. In 27363-01.patch, the approach is more direct. Instead of usingsyncSelection
, the model needed for the image editor is set as an an attribute of thecontroller.EditImage
state.