-
-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
Discussed in #384
Originally posted by Isini-Dananjana February 23, 2023
When using YJS with Plate, it adds a new line to the top of a shared document whenever a new user joins the collaboration session. I think this happens due to the following code found in yTextToSlateElement.
const children =
// eslint-disable-next-line @typescript-eslint/no-use-before-define
delta.length > 0 ? delta.map(deltaInsertToSlateNode) : [{ text: '' }];
return { ...yText.getAttributes(), children };
When multiple users are in the same document, this empty line that is added also gets synced, resulting in many empty lines.
Any idea how to resolve the issue?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels