@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user