docs: update content

This commit is contained in:
Hans Pagel
2021-01-08 18:50:37 +01:00
parent e2a7f888e7
commit 7cc6094125

View File

@@ -3,8 +3,7 @@
## toc ## toc
## Introduction ## Introduction
Node views are the best thing since sliced bread, at least if youre a fan of customization (and bread). Node views enable you to add literally anything to a node. If you can write it in JavaScript, you can use it in your editor.
TODO
```js ```js
import { Node } from '@tiptap/core' import { Node } from '@tiptap/core'
@@ -48,8 +47,10 @@ export default Node.create({
</div> </div>
``` ```
#### Example: Table of contents
<demo name="Guide/NodeViews/TableOfContents" /> <demo name="Guide/NodeViews/TableOfContents" />
#### Example: Drawing in the editor
<demo name="Examples/Drawing" /> <demo name="Examples/Drawing" />
### Advanced node views with content ### Advanced node views with content
@@ -69,6 +70,7 @@ export default Node.create({
</div> </div>
``` ```
#### Example: Drag handles
<demo name="Guide/NodeViews/DragHandle" /> <demo name="Guide/NodeViews/DragHandle" />
## Render Vue components ## Render Vue components