mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 09:25:29 +08:00
Merge branch 'main' of https://github.com/ueberdosis/tiptap
This commit is contained in:
commit
1a1fe847c3
@ -54,7 +54,7 @@ const getRandomName = () => getRandomElement(names)
|
||||
const room = getRandomRoom()
|
||||
|
||||
const ydoc = new Y.Doc()
|
||||
const websocketProvider = new WebsocketProvider('wss://websocket.tiptap.dev', room, ydoc)
|
||||
const websocketProvider = new WebsocketProvider('wss://connect.tiptap.dev', room, ydoc)
|
||||
|
||||
const getInitialUser = () => {
|
||||
return JSON.parse(localStorage.getItem('currentUser')) || {
|
||||
|
@ -68,7 +68,7 @@ export default {
|
||||
|
||||
mounted() {
|
||||
const ydoc = new Y.Doc()
|
||||
this.provider = new WebsocketProvider('wss://websocket.tiptap.dev', this.room, ydoc)
|
||||
this.provider = new WebsocketProvider('wss://connect.tiptap.dev', this.room, ydoc)
|
||||
this.provider.on('status', event => {
|
||||
this.status = event.status
|
||||
})
|
||||
|
@ -25,7 +25,7 @@ cd Tiptap-example
|
||||
```
|
||||
|
||||
## 2. Install the dependencies
|
||||
Now that we have a standard boilerplate set up we can get started on getting Tiptap up and running! For this we will need to install two packages: `@tiptap/react` and `@tipta/starter-kit` which includes all the extensions you need to get started quickly.
|
||||
Now that we have a standard boilerplate set up we can get started on getting Tiptap up and running! For this we will need to install two packages: `@tiptap/react` and `@tiptap/starter-kit` which includes all the extensions you need to get started quickly.
|
||||
|
||||
```bash
|
||||
# install with npm
|
||||
|
Loading…
Reference in New Issue
Block a user