docs: move youtube documentation to nodes
This commit is contained in:
@@ -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(() => {
|
||||||
@@ -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(() => {
|
||||||
@@ -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 don’t 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 don’t 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).
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
You’re free to create your own nodes for Tiptap. Here is the boilerplate code that’s need to create and register your own node:
|
You’re free to create your own nodes for Tiptap. Here is the boilerplate code that’s need to create and register your own node:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user