Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

How to delete the image (from database) after using backspace in editor? #202

Closed
abhishekjalan87 opened this issue May 2, 2020 · 1 comment

Comments

@abhishekjalan87
Copy link

If suppose user uploaded the image but later he decided to remove the image using backspace or delete then how it will delete from the database.
Currently, it's not deleting from the database and creating the junks.

Please advise

@brijeshb42
Copy link
Owner

Seems use case specific. Draft-js does not have listener that provides only the changed data. There are various other ways to do this. For example, if the current block is image and backspace is pressed, you can trigger your db delete.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants