editor.js/types/events/block/mutation-type.ts
Peter Savchenko 4f15bbc0cb
feat(onchange): callback now accepts custom event (#1791)
* 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
2021-10-05 20:40:44 +03:00

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',
}