Dragging not undoable with CTRL-Z (without additional click to focus the editor again)
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 58/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- react, typescript
- 領域
- frontend
研究方向
Start by tracing how the drag handle performs block moves and applies font color, then follow how those actions restore editor focus and interact with undo. Reproduce on the BlockNote demo in Firefox or Chrome: immediately press CTRL-Z after each action. Done when both actions can be undone without an extra click in the editor.
由索引模型根據 Issue 內容生成。
描述
What’s broken?
When dragging contents with the drag handle on the left of the editor, pressing CTRL-Z right afterwards does not undo the changes. You first have to click inside the editor to focus it again, then it works.
The same happens if you apply a custom font color via the drag handle menu. Only after clicking into the editor again, CTRL-Z works.
Tested on Firefox and Chrome on Linux.
What did you expect to happen?
Pressing CTRL-Z should work right after dragging without needing to click in the editor before.
Steps to reproduce
- Go to the BlockNote demo page
- Drag some contents with the left-hand drag handle
- Press CTRL-Z right afterwards
- See that nothing happens
- Click inside the editor
- Press CTRL-Z again
- See that it works
BlockNote version
No response
Environment
Chrome and Firefox on Linux
Additional context
No response
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
- 分支
- 778
- 平均合併
- 2 天 7 小時
- 30 天內合併 PR
- 30
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TypeCellOS/BlockNote 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
TypeCellOS/BlockNote#2949 · 1 則留言 ·
維護者通常 1 天內回覆
-
a11y
難度 2/5 1-3 小時 新手友好度 68/100
TypeCellOS/BlockNote#2855 ·
維護者通常 1 天內回覆
-
a11y
難度 2/5 1-3 小時 新手友好度 62/100
TypeCellOS/BlockNote#2829 · 1 則留言 ·
維護者通常 1 天內回覆
-
Comment thread actions: hover-only controls and unlabeled buttons in ThreadsSideba可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉a11y
難度 2/5 1-3 小時 新手友好度 72/100
TypeCellOS/BlockNote#2824 ·
維護者通常 1 天內回覆
-
CollaborationExtension registered at runtime installs no sync plugin, so edits never reach the Y.Doc可能已有人在做 @adarshsm 於 2 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 25/100
TypeCellOS/BlockNote#3175 ·
維護者通常 1 天內回覆
查看 TypeCellOS/BlockNote 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
better-auth/better-auth#11723 · 1 個 reaction ·
維護者通常 1 天內回覆
-
area: docs difficulty: easy documentation good first issue
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
Worker-Erstellung bricht langsame Git-Worktree-Checkouts nach 20 Sekunden ab可能已有人在做 @KajoVanBuyten 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 69/100
AgentSystemLabs/agent-office#367 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
pierrecomputer/pierre#1187 ·
維護者通常 1 天內回覆
-
area: frontend bug
難度 1/5 1-3 小時 新手友好度 85/100
snapotter-hq/SnapOtter#2425 ·
維護者通常 1 天內回覆