facebook / facebook/lexical

Feature: Support YJS Subdocs with Collaboration

Open
#6,065 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 16h
Merged PRs (30d)
61

Description

## Description
Currently, it seems that the `LexicalCollaborationPlugin` makes a lot of assumptions about there only being a single YJS doc and it being set at the root. When trying to use subdocs and only pass a subdoc as the primary doc to be used with lexical collaboration, things don't seem to quite sync correctly.

Contributor guide

Open the contributing guide

Research direction

Start by reading the LexicalCollaborationPlugin implementation and its handling of the primary YJS document. Reproduce the issue with a YJS subdoc passed as the primary document, then trace where root-document assumptions prevent synchronization. Done means collaboration syncs correctly when using subdocs rather than only a single root document.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
distributed-systems, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.