Placeholder not shown when another editor's cursor is on the same line

Abierto
#2,118 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
react, typescript
Área
frontend

Línea de trabajo

Reproduce the issue at the BlockNote collaborative editing demo with two users placing cursors on the same empty line. Trace the placeholder rendering and collaborative cursor handling to determine why the placeholder disappears, then verify that it remains visible on empty lines with other cursors present.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug:P4

Describe the bug

When the cursor is on an empty line, a placeholder should be displayed. However, in collaborative editing scenarios, the placeholder is not shown if another editor's cursor is present on the same line.

This issue can be observed in the following video:

https://github.com/user-attachments/assets/9c097cac-5c37-4433-a6e3-09e54410fb35

This issue is particularly problematic when editing a completely empty document, as it occurs on the very first line, leading to a confusing user experience.

To Reproduce

  1. Open a document in collaborative editing mode with multiple users - https://www.blocknotejs.org/
  2. One user places their cursor on an empty line
  3. Another user places their cursor on the same empty line
  4. Observe that the placeholder text is not displayed

Expected behavior:
The placeholder should be visible on empty lines regardless of other editors' cursor positions.

Actual behavior:
The placeholder is hidden when multiple cursors are present on the same empty line.

Misc

  • Node version:
  • Package manager:
  • Browser:
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖
Lenguaje dominante
TypeScript
Estrellas
10.2k
Forks
772
Merge medio
3 d 11 h
PR fusionados (30 d)
17

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de TypeCellOS/BlockNote

Todos los issues de TypeCellOS/BlockNote

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.