allow paste events for node views

This commit is contained in:
Philipp Kühn
2019-01-30 17:16:34 +01:00
parent 2766a8317c
commit b032ea11ac

View File

@@ -107,10 +107,11 @@ export default class ComponentView {
}
// disable (almost) all prosemirror event listener for node views
stopEvent() {
stopEvent(event) {
const isPaste = event.type === 'paste'
const draggable = !!this.extension.schema.draggable
if (draggable) {
if (draggable || isPaste) {
return false
}