allow drag events in ComponentView, fix #52
This commit is contained in:
@@ -60,8 +60,11 @@ export default class ComponentView {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
stopEvent() {
|
stopEvent(event) {
|
||||||
return true
|
// 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) {
|
update(node, decorations) {
|
||||||
|
|||||||
Reference in New Issue
Block a user