Browse Source

Fix preview command for tests

pull/2977/head
Artur Arseniev 6 years ago
parent
commit
ccfc0b18f3
  1. 3
      src/commands/view/Preview.js

3
src/commands/view/Preview.js

@ -22,8 +22,9 @@ export default {
}, },
tglEffects(on) { tglEffects(on) {
const { em } = this;
const mthEv = on ? 'on' : 'off'; 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) { run(editor, sender) {

Loading…
Cancel
Save