[Beta]: In the Collaboration Demo, Enter at the edge of a bold word throws "Editor point does not target a text group." and the two editors diverge
Los mantenedores suelen responder en 1 día
@zbeyens ya está trabajando en esto.
Desde el 27/10/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
Línea de trabajo
Start with packages/plitejs/src/yjs/core/selection.ts and trace pointToYjsRelativePosition through packages/plitejs/src/yjs/core/controller.ts at the cursor publish and drift check. Then inspect packages/plitejs/src/yjs/core/canonical-split.ts, especially findCanonicalSplit, and reproduce in /examples/plite/collaboration-demo. Done means Enter at either edge of a bold word splits both editors identically, remote edits stay in sync, and no import or retry error occurs.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Testing lane
- Repository:
udecode/plate - Branch:
next - Release channel: Beta
- Exact commit/package version:
NOT_ENOUGH_INFO
Summary
On /examples/plite/collaboration-demo, pressing Enter with the caret at the end or the start of a bold word throws Editor plugin commit-listener failed in plugin "yjs": Editor point does not target a text group. Ada's editor splits the line, but Lin's does not. After that the two editors do not match again. The next remote edit makes Ada's card show Collaboration import failed, Ada shows part of the line twice, and the card's Retry button does not bring the editors back together.
Reproduction
The page shows two editors, Ada and Lin, each with its own Y.Doc. Both start with the line Ada and Lin edit independent documents through a local Yjs room.
Repro 1: /examples/plite/collaboration-demo, Chromium
An agent ran this with Playwright.
- Open https://beta.platejs.org/examples/plite/collaboration-demo.
- In the
Adaeditor, double-click the wordLin. - Press ⌘B.
Linturns bold in both editors. - Press →. The caret is at the end of the bold
Lin. - Press Enter.
- In the
Lineditor, click at the start of the line and typeU. - Click
Retryin Ada's card.
Step 5 throws the error. Ada's editor shows two paragraphs, Ada and Lin and edit independent documents through a local Yjs room. Lin's editor keeps the line whole and gets an empty paragraph after it. Both cards still read Synced and Ready, and the page shows no message.
After step 6, Ada's card shows Collaboration import failed above Editor point does not target a text group. and a Retry button, and its Ready badge reads error. Ada's first paragraph now reads UAda and Lin edit independent documents through a local Yjs room., so edit independent documents through a local Yjs room. shows twice in Ada and once in Lin. Ada's Undo count drops from 2 to 1.
Step 7 throws Editor point does not target a text group. again, and nothing on the page changes.
With ← instead of → in step 4, the caret is at the start of the bold Lin. Step 5 then throws the same error, Ada splits the line before Lin, and Lin does not split it.
Expected
The same page splits a line in both editors, with no error, when Enter is pressed inside plain text or inside the bold word. In the 2026-10-24 replay, Enter between ed and it of edit, and Enter between L and in of the bold Lin, each gave the same two paragraphs in Ada and Lin. A letter typed in Lin afterwards stayed in sync. Enter at the edge of the bold word should behave the same way.
Actual
- Enter at either edge of a bold word throws
Editor plugin commit-listener failed in plugin "yjs": Editor point does not target a text group. - Ada and Lin then show different documents, while both cards still read
Synced. - The next remote edit fails to import into Ada, and Ada shows duplicated text.
Retrydoes not recover. In Chromium it throws again and the error card stays. In Playwright WebKit it throws nothing, removes the error card and sets the badge back toReady, but Ada still shows the duplicated paragraph, and Lin still shows one line plus an empty paragraph.- In the 2026-10-22 run, only a page reload brought the editors back together.
Environment
- Exact
nextcommit/Beta package version:NOT_ENOUGH_INFO. The page names no build. The 2026-10-22 runs used Beta built fromnext7f2eacb6eb, deployed that day. - Repro 1 and its recording: an agent on 2026-10-24, at natamox's request, in headless Chromium 149.0.7827.55 on macOS, driven by Playwright with real mouse and key input. The same steps in Playwright WebKit 26.5 (not Safari) also fail, as Actual describes.
- An agent first found this on 2026-10-22 (PT), at natamox's request, in the Claude desktop app's built-in Chromium 152, and recorded it in headless Chromium 149 the same day, with the same result.
- Firefox was not tried: Playwright's Firefox did not launch headless on the agent's Mac. Nobody has tried Safari itself or a phone.
Caveat
- From a reading of the code on
next, not checked with a debugger: the message comes frompointToYjsRelativePosition(packages/plitejs/src/yjs/core/selection.ts:13, thrown at:19) when a point has no text in the Yjs tree. After a local commit, the controller publishes the mapped cursor (packages/plitejs/src/yjs/core/controller.ts:922, which converts it inawareness.ts:23) and then checks whether the editor and Yjs drifted apart, converting the selection again atcontroller.ts:939. Both steps make this conversion. - An inference from the result, not confirmed in the code: Lin's view, with no split and an empty paragraph at the end, would be what the split wrote into Yjs. So a split at the boundary between two text runs writes something different from the editor's own split. The conversion then throws, the drift repair queued at
controller.ts:953never runs, and Ada's editor and Ada's Y.Doc stay apart. The likely place is the split write inpackages/plitejs/src/yjs/core/canonical-split.ts(findCanonicalSplit,:215). The exact branch is not confirmed.
Evidence
- Repro 1: headless Chromium recording, 28.6 seconds, with an English step panel beside the page. A dark readout box drawn by the test script shows the count of uncaught page errors, each editor's badges and its paragraphs. A red box near the top, also drawn by the script, shows the last uncaught error. At 0:02 the double-click selects
Linin Ada. At 0:05 ⌘B makes it bold in both editors. At 0:07.6 → puts the caret after the boldLin. At 0:10.3 Enter throws the first error, Ada splits the line, and the readout shows Lin with the whole line plus an empty paragraph. At 0:13.4, afterUis typed in Lin, Ada's card showsCollaboration import failed, the readout shows Ada's badge aserror, and Ada's first paragraph becomes the whole line. At 0:16.1Retrythrows a second error, and nothing else changes. The result shows from 0:19.5 to the end.
Repro 1 — headless Chromium, /examples/plite/collaboration-demo
https://github.com/user-attachments/assets/745d4f97-cb1c-4c50-b4a7-33709d897c33
Related
- #5283: in the same example, a remote edit before the local caret leaves the caret at its old offset, so the next letter lands in the wrong place.
- #5279: in the same example, an offline replace loses the letters the new word shares with the deleted word after reconnect.
- Lenguaje dominante
- TypeScript
- Estrellas
- 16.6k
- Forks
- 993
- Merge medio
- 20 h 2 min
- PR fusionados (30 d)
- 62
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de udecode/plate
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
[Beta]: After Enter saves an edited link URL, the link toolbar stays hidden while the caret is in the linkPosiblemente ocupada @zbeyens la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
udecode/plate#5314 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
[Beta]: The docs Demo example page starts with an empty editorPosiblemente ocupada @natamox la tomó hace 4 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
udecode/plate#5308 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de udecode/plate
Issues similares
-
area: triage theme: undefined
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
jhipster/generator-jhipster#35895 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
paperclipai/paperclip#18396 ·
Los mantenedores suelen responder en 1 día
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
lingdojo/kana-dojo#33380 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
chore other
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
alastair-smith/card-games#342 ·
Los mantenedores suelen responder en 1 día