From ecd0a6669a353bbf25ded963b43fbc871e9726a0 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Mon, 11 Jan 2021 18:37:30 +0100 Subject: [PATCH] add support for raw Y.js fragments to the collaboration extension --- .../demos/Examples/MultipleEditors/index.vue | 32 +++++++++++-------- .../docPages/api/extensions/collaboration.md | 9 +++--- .../docPages/guide/collaborative-editing.md | 13 ++++++-- .../src/collaboration.ts | 21 +++++++----- 4 files changed, 48 insertions(+), 27 deletions(-) diff --git a/docs/src/demos/Examples/MultipleEditors/index.vue b/docs/src/demos/Examples/MultipleEditors/index.vue index 6c9f4fdfe..33c6d2307 100644 --- a/docs/src/demos/Examples/MultipleEditors/index.vue +++ b/docs/src/demos/Examples/MultipleEditors/index.vue @@ -70,7 +70,7 @@ export default { Text, Collaboration.configure({ document: ydoc, - fragment: 'title', + field: 'title', }), ], }) @@ -84,7 +84,7 @@ export default { CustomTaskItem, Collaboration.configure({ document: ydoc, - fragment: 'tasks', + field: 'tasks', }), ], }) @@ -96,7 +96,7 @@ export default { Text, Collaboration.configure({ document: ydoc, - fragment: 'description', + field: 'description', }), ], }) @@ -112,17 +112,23 @@ export default {