docs: move youtube documentation to nodes

This commit is contained in:
svenadlung
2022-07-06 13:20:33 +02:00
parent 9e843539e0
commit 599b8cc014
11 changed files with 9 additions and 9 deletions

View File

@@ -28,7 +28,6 @@ There are also some extensions with more capabilities. We call them [nodes](/api
| [TextAlign](/api/extensions/text-align) | | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-text-align/) |
| [UniqueID](/api/extensions/unique-id) | | Requires a Tiptap Pro subscription |
| [Typography](/api/extensions/typography) | | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-typography/) |
| [YouTube](/api/extensions/youtube) | | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-youtube/) |
You dont have to use it, but we prepared a `@tiptap/starter-kit` which includes the most common extensions. Read more about [`StarterKit`](/guide/configuration#default-extensions).

View File

@@ -109,4 +109,4 @@ editor.commands.setYoutubeVideo({
[packages/extension-youtube/](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-youtube/)
## Usage
https://embed.tiptap.dev/preview/Extensions/YouTube
https://embed.tiptap.dev/preview/Nodes/YouTube

View File

@@ -30,6 +30,7 @@ If you think of the document as a tree, then nodes are just a type of content in
| [TaskList](/api/nodes/task-list) | | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-task-list/) |
| [TaskItem](/api/nodes/task-item) | | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-task-item/) |
| [Text](/api/nodes/text) | Included | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-text/) |
| [YouTube](/api/nodes/youtube) | Included | [GitHub](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-text/) |
## Create a new node
Youre free to create your own nodes for Tiptap. Here is the boilerplate code thats need to create and register your own node: