codex-team / codex-team/editor.js

💡 Callback when a Block is removed is needed

Open
#1,323 2 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.