mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-08-06 13:38:49 +08:00
one paragraph in the task list item is enough
This commit is contained in:
parent
5a4e7cc926
commit
b3fbeb42c5
@ -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,
|
||||
}),
|
||||
|
@ -18,7 +18,7 @@ const CustomDocument = Document.extend({
|
||||
})
|
||||
|
||||
const CustomTaskItem = TaskItem.extend({
|
||||
content: 'inline*',
|
||||
content: 'paragraph',
|
||||
})
|
||||
|
||||
export default {
|
||||
|
Loading…
Reference in New Issue
Block a user