docs: update content
This commit is contained in:
@@ -4,7 +4,7 @@ This extension adds information about all connected users (like their name and a
|
||||
Open this page in multiple browser windows to test it.
|
||||
|
||||
:::premium Pro Extension
|
||||
We kindly ask you to sponsor us, before using this extension in production. [Read more](/sponsor)
|
||||
We kindly ask you to [sponsor our work](/sponsor) when using this extension in production.
|
||||
:::
|
||||
|
||||
::: warning Use with Collaboration
|
||||
@@ -21,12 +21,11 @@ yarn add @tiptap/extension-collaboration-cursor
|
||||
```
|
||||
|
||||
## Settings
|
||||
| Option | Type | Default | Description |
|
||||
| -------- | ---------- | ----------- | ----------------------------------------------------------------------------------- |
|
||||
| provider | `Object` | `null` | The Y.js provider, for example a WebSocket connection. |
|
||||
| name | `String` | `'Someone'` | The name of the current user. |
|
||||
| color | `String` | `'#cccccc'` | The current user’s cursor color. |
|
||||
| render | `Function` | … | A render function for the cursor, look at the extension source code for an example. |
|
||||
| Option | Type | Default | Description |
|
||||
| -------- | ---------- | ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| provider | `Object` | `null` | A Y.js network connection, for example a [y-websocket](https://github.com/yjs/y-websocket) instance. |
|
||||
| user | `Object` | `{ user: null, color: null }` | Attributes of the current user, assumes to have a name and a color, but can be used with any attribute. |
|
||||
| render | `Function` | … | A render function for the cursor, look at [the extension source code](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-collaboration-cursor/) for an example. |
|
||||
|
||||
## Commands
|
||||
| Command | Parameters | Description |
|
||||
@@ -40,4 +39,4 @@ yarn add @tiptap/extension-collaboration-cursor
|
||||
:::warning Public
|
||||
The content of this editor is shared with other users.
|
||||
:::
|
||||
<demo name="Extensions/CollaborationCursor" highlight="11,48-52" />
|
||||
<demo name="Extensions/CollaborationCursor" highlight="11,38-44" />
|
||||
|
||||
@@ -2,24 +2,22 @@
|
||||
The Collaboration extension enables you to collaborate with others on one document. The implementation is based on [Y.js by Kevin Jahns](https://github.com/yjs/yjs), which is the coolest thing to [integrate collaborative editing](/guide/collaborative-editing) in your project.
|
||||
|
||||
:::premium Pro Extension
|
||||
We kindly ask you to sponsor us, before using this extension in production. [Read more](/sponsor)
|
||||
We kindly ask you to [sponsor our work](/sponsor) when using this extension in production.
|
||||
:::
|
||||
|
||||
## Installation
|
||||
```bash
|
||||
# with npm
|
||||
npm install @tiptap/extension-collaboration yjs y-webrtc
|
||||
npm install @tiptap/extension-collaboration yjs y-websocket
|
||||
|
||||
# with Yarn
|
||||
yarn add @tiptap/extension-collaboration yjs y-webrtc
|
||||
yarn add @tiptap/extension-collaboration yjs y-websocket
|
||||
```
|
||||
|
||||
## Settings
|
||||
<!-- TODO -->
|
||||
| Option | Type | Default | Description |
|
||||
| -------- | ---- | ------- | ----------- |
|
||||
| provider | | | |
|
||||
| type | | | |
|
||||
| Option | Type | Default | Description |
|
||||
| -------- | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
|
||||
| provider | `Object` | `null` | A Y.js network connection, for example a [y-websocket](https://github.com/yjs/y-websocket) instance. |
|
||||
|
||||
## Commands
|
||||
*None*
|
||||
@@ -34,4 +32,4 @@ yarn add @tiptap/extension-collaboration yjs y-webrtc
|
||||
:::warning Public
|
||||
The content of this editor is shared with other users.
|
||||
:::
|
||||
<demo name="Extensions/Collaboration" highlight="10-12,30-32,43-46,53" />
|
||||
<demo name="Extensions/Collaboration" highlight="10,26-27,34-36" />
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Link
|
||||
The Link extension adds support for `<a>` tags to the editor. The extension is headless too, there is no actual UI to add, modify or delete links. The usage example below uses the native JavaScript prompt to show you how that could work.
|
||||
|
||||
In a real world application, you would probably add a more sophisticated user interface. [Check out the example](/examples/links) to see how that could look like.
|
||||
In a real world application, you would probably add a more sophisticated user interface.
|
||||
|
||||
Pasted URLs will be linked automatically.
|
||||
Pasted URLs will be transformed to links automatically.
|
||||
|
||||
## Installation
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user