one paragraph in the task list item is enough

This commit is contained in:
Hans Pagel 2020-12-02 20:10:49 +01:00
parent 5a4e7cc926
commit b3fbeb42c5
2 changed files with 6 additions and 2 deletions

View File

@ -49,6 +49,10 @@ 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)]
}
@ -86,7 +90,7 @@ export default {
...defaultExtensions().filter(extension => extension.config.name !== 'history'),
Highlight,
TaskList,
TaskItem,
CustomTaskItem,
Collaboration.configure({
provider,
}),

View File

@ -18,7 +18,7 @@ const CustomDocument = Document.extend({
})
const CustomTaskItem = TaskItem.extend({
content: 'inline*',
content: 'paragraph',
})
export default {