From 6f0fa6569d1dd22da12db34c16c6163b3c5de408 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Wed, 5 May 2021 20:58:16 +0200 Subject: [PATCH] docs: write about drag handles for node views, fix #1234 --- docs/src/docPages/guide/node-views.md | 5 ----- docs/src/docPages/guide/node-views/react.md | 5 +++++ docs/src/docPages/guide/node-views/vue.md | 5 +++++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/src/docPages/guide/node-views.md b/docs/src/docPages/guide/node-views.md index 01e386d1..230c8bc0 100644 --- a/docs/src/docPages/guide/node-views.md +++ b/docs/src/docPages/guide/node-views.md @@ -102,11 +102,6 @@ parseHTML() { ### Render JavaScript/Vue/React But what if you want to render your actual JavaScript/Vue/React code? Consider using tiptap to render your output. Just set the editor to `editable: false` and no one will notice you’re using an editor to render the content. :-) -## 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. - - - diff --git a/docs/src/docPages/guide/node-views/vue.md b/docs/src/docPages/guide/node-views/vue.md index c73c9fc2..3f89f635 100644 --- a/docs/src/docPages/guide/node-views/vue.md +++ b/docs/src/docPages/guide/node-views/vue.md @@ -189,3 +189,8 @@ export default Vue.extend({ props: nodeViewProps, }) ``` + +## 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. + +