docs: update content
This commit is contained in:
@@ -87,7 +87,7 @@ Make sure it’s something distinguishable, so it’s easier to restore the cont
|
||||
### Parse HTML
|
||||
The same applies to restoring the content. You can configure what markup you expect, that can be something completely unrelated to the node view markup. It just needs to contain all the information you want to restore.
|
||||
|
||||
Attributes are automagically restored, if you registered them through [`addAttributes`](/guide/extend-extensions#attributes).
|
||||
Attributes are automagically restored, if you registered them through [`addAttributes`](/guide/custom-extensions#attributes).
|
||||
|
||||
```js
|
||||
// Input: <my-custom-node count="1"></my-custom-node>
|
||||
@@ -102,6 +102,11 @@ 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.
|
||||
|
||||
<demo name="Guide/NodeViews/DragHandle" />
|
||||
|
||||
<!-- ## Reference
|
||||
|
||||
### dom: ?dom.Node
|
||||
|
||||
Reference in New Issue
Block a user