Use the new storage feature for the CollaborationCursor extension (#2096)

* extension-collaboration-cursor: make use of the new storage feature, deprecate users command and onUsers callback, clean up

* docs: update the jobs page
This commit is contained in:
Hans Pagel
2021-10-28 10:00:16 +02:00
committed by GitHub
parent 85cec0d4da
commit b004f1e21d
5 changed files with 54 additions and 38 deletions

View File

@@ -43,11 +43,15 @@ A render function for the cursor, look at [the extension source code](https://gi
## Commands
### user()
An object with the attributes of the current user. It expects a `name` and a `color`, but you can add additional fields, too.
### updateUser()
Pass an object with updated attributes of the current user. It expects a `name` and a `color`, but you can add additional fields, too.
```js
editor.commands.user({ name: 'Philipp Kühn', color: '#000000' })
editor.commands.updateUser({
name: 'Philipp Kühn',
color: '#000000',
avatar: 'https://unavatar.io/github/philippkuehn',
})
```
## Source code

View File

@@ -1,13 +1,13 @@
# Jobs
Some great companies are looking for developers right now. If youre looking for a job to work with Tiptap and/or Hocuspocus, consider applying:
You enjoy to work with Tiptap? You are not alone. Some amazing companies are looking for developers with some Tiptap and/or [Hocuspocus](https://hocuspocus.dev) experience.
**[Software Engineer](https://gamma.app/docs/Software-Engineer-6s0e0grm9zk9w5s) @ Gamma**<br>
- **[Software Engineer](https://gamma.app/docs/Software-Engineer-6s0e0grm9zk9w5s) @ Gamma**<br>
React · Tiptap · San Francisco, CA
**[Frontend Engineer](https://birdeatsbug.recruitee.com/o/frontend-engineer-vuejs-graphql-browser-extension) @ Bird Eats Bug**<br>
- **[Javascript Engineer, Software Engineer, …](https://birdeatsbug.recruitee.com/) @ Bird Eats Bug**<br>
Vue.js · Tiptap · Remote · Berlin, Germany
**[Frontend Developer](https://bitcrowd.net/jobs) @ bitcrowd**<br>
- **[Frontend Developer](https://bitcrowd.net/jobs) @ bitcrowd**<br>
Tiptap · Remote · Berlin, Germany
Is your company hiring, too? We have more than 200,000 page views/month from people who love to work with Tiptap. Maybe we can find someone for you. Reach out to [humans@tiptap.dev](mailto:humans@tiptap.dev) with a link to your job description!
Is your company hiring, too? We have [200,000 page views/month](https://plausible.io/tiptap.dev?period=30d) from people who love to work with Tiptap. Maybe we can help you find the right person. Reach out to [humans@tiptap.dev](mailto:humans@tiptap.dev) with a link to your job description!