one paragraph in the task list item is enough
This commit is contained in:
@@ -49,6 +49,10 @@ 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)]
|
||||||
}
|
}
|
||||||
@@ -86,7 +90,7 @@ export default {
|
|||||||
...defaultExtensions().filter(extension => extension.config.name !== 'history'),
|
...defaultExtensions().filter(extension => extension.config.name !== 'history'),
|
||||||
Highlight,
|
Highlight,
|
||||||
TaskList,
|
TaskList,
|
||||||
TaskItem,
|
CustomTaskItem,
|
||||||
Collaboration.configure({
|
Collaboration.configure({
|
||||||
provider,
|
provider,
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const CustomDocument = Document.extend({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const CustomTaskItem = TaskItem.extend({
|
const CustomTaskItem = TaskItem.extend({
|
||||||
content: 'inline*',
|
content: 'paragraph',
|
||||||
})
|
})
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
Reference in New Issue
Block a user