Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Undoing a block move into a multi-column layout removes the block until a second undo

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

メンテナーはふだん 1 日以内に返信

@adarshsm がすでに取り組んでいます。

2026年10月16日 から。

  • #3207 @adarshsm による — オープン

評価

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

調査の方向性

Start in src/extensions/DropCursor/multiColumnHandleDropPlugin.ts, where the drop handler removes the dragged block and then rewrites the column structure in separate editor calls. Check how editor.transact() groups steps for undo, and look for an existing test covering multi-column drops to extend. Done when one undo after a drop restores the original document with the block visible.

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

説明

needs-triage
What’s broken?

When I drag a block to the left or right of another block to create a multi-column layout, undoing the move once makes the moved block disappear from the document. Undoing a second time restores the block to its original position.

What did you expect to happen?

A single undo should revert the entire drag-and-drop operation and restore the document to its original state, with the moved block visible in its original position.

Steps to reproduce
  1. Create a document with at least two blocks.
  2. Use a block's drag handle to move it to the left or right of another block, creating a multi-column layout.
  3. Trigger Undo once (for example, by clicking the editor's Undo button or calling editor.undo()).
  4. Observe that the moved block disappears.
  5. Trigger Undo again and observe that the block returns to its original position.
BlockNote version

0.55.0 (@blocknote/[email protected])

Environment

Chrome on macOS; exact browser version not recorded.

Additional context

In src/extensions/DropCursor/multiColumnHandleDropPlugin.ts, the drop handler removes the dragged block and then updates or replaces the column structure using separate editor operations. This appears to split a single drag-and-drop action into multiple undo-history steps. In a local patch, wrapping the removal and column update/replacement in editor.transact() made one undo restore the original document.

Contribution
  • I'd be interested in contributing a fix for this issue
Sponsor
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖
主要言語
TypeScript
スター
10.3k
フォーク
777
平均マージ
3日 6時間
マージ済み PR(30日)
44

環境構築

はじめの一歩

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

TypeCellOS/BlockNote のほかの issue

TypeCellOS/BlockNote の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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