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

@@ -1,6 +1,6 @@
context('/src/Extensions/Youtube/Vue/', () => { context('/src/Nodes/Youtube/React/', () => {
before(() => { before(() => {
cy.visit('/src/Extensions/Youtube/Vue/') cy.visit('/src/Nodes/Youtube/React/')
}) })
beforeEach(() => { beforeEach(() => {

View File

@@ -1,6 +1,6 @@
context('/src/Extensions/Youtube/React/', () => { context('/src/Nodes/Youtube/Vue/', () => {
before(() => { before(() => {
cy.visit('/src/Extensions/Youtube/React/') cy.visit('/src/Nodes/Youtube/Vue/')
}) })
beforeEach(() => { beforeEach(() => {

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/) | | [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 | | [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/) | | [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). 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/) [packages/extension-youtube/](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-youtube/)
## Usage ## 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/) | | [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/) | | [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/) | | [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 ## 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: Youre free to create your own nodes for Tiptap. Here is the boilerplate code thats need to create and register your own node:

View File

@@ -302,6 +302,9 @@
link: /api/nodes/task-item link: /api/nodes/task-item
- title: Text - title: Text
link: /api/nodes/text link: /api/nodes/text
- title: YouTube
link: /api/nodes/youtube
type: new
- title: Marks - title: Marks
link: /api/marks link: /api/marks
items: items:
@@ -361,9 +364,6 @@
- title: UniqueID - title: UniqueID
link: /api/extensions/unique-id link: /api/extensions/unique-id
type: pro type: pro
- title: YouTube
link: /api/extensions/youtube
type: new
- title: Utilities - title: Utilities
link: /utilities link: /utilities
redirect: /api/utilities/html redirect: /api/utilities/html