cleanup drag handle example

This commit is contained in:
Philipp Kühn
2020-11-25 17:58:53 +01:00
parent b7ca33aeae
commit fd94e321ea
9 changed files with 80 additions and 118 deletions

View File

@@ -71,6 +71,7 @@ class VueNodeView implements NodeView {
return
}
// sometimes `event.target` is not the `dom` element
event.dataTransfer?.setDragImage(this.dom, 0, 0)
const selection = NodeSelection.create(view.state.doc, this.getPos())