docs: update content
This commit is contained in:
@@ -3,8 +3,7 @@
|
|||||||
## toc
|
## toc
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
Node views are the best thing since sliced bread, at least if you’re 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
|
||||||
|
|||||||
Reference in New Issue
Block a user