limit collab demo to 10,000 characters
This commit is contained in:
@@ -28,6 +28,7 @@ import CollaborationCursor from '@tiptap/extension-collaboration-cursor'
|
|||||||
import TaskList from '@tiptap/extension-task-list'
|
import TaskList from '@tiptap/extension-task-list'
|
||||||
import TaskItem from '@tiptap/extension-task-item'
|
import TaskItem from '@tiptap/extension-task-item'
|
||||||
import Highlight from '@tiptap/extension-highlight'
|
import Highlight from '@tiptap/extension-highlight'
|
||||||
|
import CharacterCount from '@tiptap/extension-character-count'
|
||||||
import * as Y from 'yjs'
|
import * as Y from 'yjs'
|
||||||
import { WebsocketProvider } from 'y-websocket'
|
import { WebsocketProvider } from 'y-websocket'
|
||||||
import { IndexeddbPersistence } from 'y-indexeddb'
|
import { IndexeddbPersistence } from 'y-indexeddb'
|
||||||
@@ -93,6 +94,9 @@ export default {
|
|||||||
this.users = users
|
this.users = users
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
CharacterCount.configure({
|
||||||
|
limit: 10000,
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user