mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 09:52:36 +02:00
feat: rename to beforeSelectedDestroy
This commit is contained in:
parent
54df65951b
commit
cec62257fe
|
@ -549,7 +549,7 @@ export default class BlockManager extends Module {
|
|||
/**
|
||||
* prevent deletion if return -1
|
||||
*/
|
||||
const ret: any = this.blocks[index].call('beforeDestroy');
|
||||
const ret: any = this.blocks[index].call('beforeSelectedDestroy');
|
||||
if (ret === -1) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue