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 MenuBar from './MenuBar.vue'
const CustomTaskItem = TaskItem.extend({
content: 'paragraph',
})
const getRandomElement = list => {
return list[Math.floor(Math.random() * list.length)]
}
@@ -77,7 +73,7 @@ export default {
...defaultExtensions().filter(extension => extension.config.name !== 'history'),
Highlight,
TaskList,
CustomTaskItem,
TaskItem,
CollaborationCursor.configure({
provider: this.provider,
user: this.currentUser,