mirror of
https://github.com/codex-team/editor.js
synced 2024-06-29 10:50:23 +02:00
4f15bbc0cb
* feat(onchange): callback now accepts custom event * Delete block-added.ts * testd updated, changelog added * Update example-dev.html * indexes added to all events * block-removed dispatching on block replacing * Update example-dev.html
25 lines
355 B
TypeScript
25 lines
355 B
TypeScript
/**
|
|
* What kind of modification happened with the Block
|
|
*/
|
|
export enum BlockMutationType {
|
|
/**
|
|
* New Block added
|
|
*/
|
|
Added = 'block-added',
|
|
|
|
/**
|
|
* On Block deletion
|
|
*/
|
|
Removed = 'block-removed',
|
|
|
|
/**
|
|
* Moving of a Block
|
|
*/
|
|
Moved = 'block-moved',
|
|
|
|
/**
|
|
* Any changes inside the Block
|
|
*/
|
|
Changed = 'block-changed',
|
|
}
|