fix task list in collab example, fix #246, fix #247

This commit is contained in:
Philipp Kühn
2021-04-07 00:26:23 +02:00
parent f5956c6809
commit b477a1bb0a

View File

@@ -33,10 +33,6 @@ import { WebsocketProvider } from 'y-websocket'
import { IndexeddbPersistence } from 'y-indexeddb' import { IndexeddbPersistence } from 'y-indexeddb'
import MenuBar from './MenuBar.vue' import MenuBar from './MenuBar.vue'
const CustomTaskItem = TaskItem.extend({
content: 'paragraph',
})
const getRandomElement = list => { const getRandomElement = list => {
return list[Math.floor(Math.random() * list.length)] return list[Math.floor(Math.random() * list.length)]
} }
@@ -77,7 +73,7 @@ export default {
...defaultExtensions().filter(extension => extension.config.name !== 'history'), ...defaultExtensions().filter(extension => extension.config.name !== 'history'),
Highlight, Highlight,
TaskList, TaskList,
CustomTaskItem, TaskItem,
CollaborationCursor.configure({ CollaborationCursor.configure({
provider: this.provider, provider: this.provider,
user: this.currentUser, user: this.currentUser,