Browse Source

Add stop command to openAssets

pull/3795/head
Artur Arseniev 5 years ago
parent
commit
77fa21457a
  1. 9
      src/commands/view/OpenAssets.js

9
src/commands/view/OpenAssets.js

@ -30,7 +30,14 @@ export default {
uploadEl && uploadEl.setAttribute('accept', accept); uploadEl && uploadEl.setAttribute('accept', accept);
} }
modal.open({ title, content: this.rendered }); modal
.open({ title, content: this.rendered })
.onceClose(() => editor.stopCommand(this.id));
return this; return this;
},
stop(editor) {
const { Modal } = editor;
Modal && Modal.close();
} }
}; };

Loading…
Cancel
Save