From b3fbeb42c5ca8554e97783ec126778d9feb2a61b Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Wed, 2 Dec 2020 20:10:49 +0100 Subject: [PATCH] one paragraph in the task list item is enough --- docs/src/demos/Examples/CollaborativeEditing/index.vue | 6 +++++- docs/src/demos/Examples/TodoApp/index.vue | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/src/demos/Examples/CollaborativeEditing/index.vue b/docs/src/demos/Examples/CollaborativeEditing/index.vue index e8949c89..a5a9ccc6 100644 --- a/docs/src/demos/Examples/CollaborativeEditing/index.vue +++ b/docs/src/demos/Examples/CollaborativeEditing/index.vue @@ -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, }), diff --git a/docs/src/demos/Examples/TodoApp/index.vue b/docs/src/demos/Examples/TodoApp/index.vue index a8dfcca0..f72fd71a 100644 --- a/docs/src/demos/Examples/TodoApp/index.vue +++ b/docs/src/demos/Examples/TodoApp/index.vue @@ -18,7 +18,7 @@ const CustomDocument = Document.extend({ }) const CustomTaskItem = TaskItem.extend({ - content: 'inline*', + content: 'paragraph', }) export default {