docs: write about drag handles for node views, fix #1234

This commit is contained in:
Hans Pagel
2021-05-05 20:58:16 +02:00
parent ef98d070ac
commit 6f0fa6569d
3 changed files with 10 additions and 5 deletions

View File

@@ -106,3 +106,8 @@ Here is the full list of what props you can expect:
| `extension` | Access to the node extension, for example to get options |
| `getPos` | Get the document position of the current node |
| `updateAttributes` | Update attributes of the current node |
## Dragging
To make your node views draggable, set `draggable: true` in the extension and add `data-drag-handle` to the DOM element that should function as the drag handle.
<!-- <demo name="Guide/NodeViews/DragHandle" /> -->