Skip to content

Commit

Permalink
chore: do not encodeURI with collab provider
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez0111 committed Jul 2, 2024
1 parent 2501cd8 commit 07e7ded
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/content/collaboration/getting-started/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default () => {
// Connect to your Collaboration server
useEffect(() => {
const provider = new TiptapCollabProvider({
name: encodeURIComponent('document.name'), // Unique document identifier for syncing. This is your document name.
name: 'document.name', // Unique document identifier for syncing. This is your document name.
appId: '7j9y6m10', // Your Cloud Dashboard AppID or `baseURL` for on-premises
token: 'notoken', // Your JWT token
document: doc,
Expand Down Expand Up @@ -192,7 +192,7 @@ export default () => {

useEffect(() => {
const provider = new TiptapCollabProvider({
name: encodeURIComponent('document.name'), // Unique document identifier for syncing. This is your document name.
name: 'document.name', // Unique document identifier for syncing. This is your document name.
appId: '7j9y6m10', // Your Cloud Dashboard AppID or `baseURL` for on-premises
token: 'notoken', // Your JWT token
document: doc,
Expand Down
2 changes: 1 addition & 1 deletion src/content/collaboration/provider/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ To ensure immediate event tracking, you can pass event listeners directly to the
```ts
const provider = new TiptapCollabProvider({
appId: '', // Use for cloud setups, replace with baseUrl in case of on-prem
name: encodeURIComponent('example-document'), // Document identifier
name: 'example-document', // Document identifier
token: '', // Your authentication JWT token
document: ydoc,
onOpen() {
Expand Down

0 comments on commit 07e7ded

Please sign in to comment.