codex-team / codex-team/editor.js
💡 Callback when a Block is removed is needed
Open
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Some blocks have side-effects.
When the block is removed it might be reasonable to clean up those side effects. To be able to register a "onBlockRemove"-callback (with the block data provided as parameter) would help alot.
For instance: When adding an image for a block it is uploaded to a server and stored. When the block is removed we like to clean that up.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.