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

オープン
#2,118 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react, typescript
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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 💖
主要言語
TypeScript
スター
10.2k
フォーク
772
平均マージ
3日 11時間
マージ済み PR(30日)
17

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TypeCellOS/BlockNote のほかの issue

TypeCellOS/BlockNote の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。