allow drag events in ComponentView, fix #52

This commit is contained in:
Philipp Kühn
2018-10-07 20:21:11 +02:00
parent 5c8a143a18
commit cd3d5dd59e

View File

@@ -60,8 +60,11 @@ export default class ComponentView {
return true
}
stopEvent() {
return true
stopEvent(event) {
// TODO: find a way to pass full extensions to ComponentView
// so we could check for schema.draggable
// for now we're allowing all drag events for node views
return !/drag/.test(event.type)
}
update(node, decorations) {