diff --git a/src/commands/view/Preview.js b/src/commands/view/Preview.js index fecca5c60..b8693f5f1 100644 --- a/src/commands/view/Preview.js +++ b/src/commands/view/Preview.js @@ -22,8 +22,9 @@ export default { }, tglEffects(on) { + const { em } = this; const mthEv = on ? 'on' : 'off'; - this.em[mthEv]('run:tlb-move:before', this.preventDrag); + em && em[mthEv]('run:tlb-move:before', this.preventDrag); }, run(editor, sender) {