New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image: Reflect media deletion in the editor #35973
Image: Reflect media deletion in the editor #35973
Commits on Dec 13, 2021
-
initial commit. listening out for changes to the attachments collecti…
…on and passing to onRemove prop.
Configuration menu - View commit details
-
Copy full SHA for 1cbe5aa - Browse repository at this point
Copy the full SHA 1cbe5aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce2d06d - Browse repository at this point
Copy the full SHA ce2d06dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5318480 - Browse repository at this point
Copy the full SHA 5318480View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e9992b - Browse repository at this point
Copy the full SHA 1e9992bView commit details -
Rolling back historical experimental commits.
Now relying on the `onClose` event of the media upload, and the media object to test if the media has been "destroyed."
Configuration menu - View commit details
-
Copy full SHA for 2f4a0d8 - Browse repository at this point
Copy the full SHA 2f4a0d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c2e873 - Browse repository at this point
Copy the full SHA 6c2e873View commit details -
Winding this back to check if an image exists when the editor loads.
This removes the `isSelected` check, but also removes a bunch of code as well. We could run the same check on `isSelected`... TBC
Configuration menu - View commit details
-
Copy full SHA for f6516b3 - Browse repository at this point
Copy the full SHA f6516b3View commit details -
Removed the onerror listener and relying on the error handler already…
… added to the Image props
Configuration menu - View commit details
-
Copy full SHA for 8dac4ae - Browse repository at this point
Copy the full SHA 8dac4aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5410b0b - Browse repository at this point
Copy the full SHA 5410b0bView commit details
Commits on Dec 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 6859bd6 - Browse repository at this point
Copy the full SHA 6859bd6View commit details -
Only delete image source URL and ID when detecting a destroyed image.…
… That way the caption, title and alt values persist in case the user deletes, then replaces.
Configuration menu - View commit details
-
Copy full SHA for 0bfc431 - Browse repository at this point
Copy the full SHA 0bfc431View commit details