Cannot Add Block Above Table When Table is First Block
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
Start with the reproduction in examples/01-basic/01-minimal and add a table as the first block. Trace the handling of the cursor-above-table state and Enter key, then verify that Enter creates a paragraph above the table and that the behavior works in the linked online example.
由索引模型根据 Issue 内容生成。
描述
Describe the bug
When a Table block is positioned as the first block in the document, there is no way to add a block above it.
Current behavior:
Can position cursor above the table using keyboard arrow keys
Pressing Enter while cursor is above the table does NOT create a new block
The plus button on the left side of the table only adds blocks below the table
No UI or keyboard method exists to add content above a table when it's the first block
Expected behavior:
When the cursor is positioned above the table (first block), pressing Enter should create a new paragraph block above the table.
To Reproduce
Create a new document
Insert a Table block as the first block
Use keyboard arrow keys (↑) to position cursor above the table
Press Enter key
Observe: No new block is created above the table
Try using the plus button (+) on the left side
Observe: Can only add blocks below the table, not above
Video demonstration:
https://github.com/user-attachments/assets/ed91bd29-44cc-4849-b583-d40282fa3b02
Online reproduction:
You can reproduce this on: https://stackblitz.com/github/TypeCellOS/BlockNote/tree/main/examples/01-basic/01-minimal
Add a table as the first block
Follow steps above
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 小时
- 30 天内合并 PR
- 17
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TypeCellOS/BlockNote 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
TypeCellOS/BlockNote#3098 ·
-
needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
TypeCellOS/BlockNote#3073 ·
-
needs-triage
难度 2/5 1-3 小时 新手友好度 85/100
TypeCellOS/BlockNote#3072 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
TypeCellOS/BlockNote#2949 · 1 条评论 ·
-
a11y
难度 2/5 1-3 小时 新手友好度 68/100
TypeCellOS/BlockNote#2855 ·
查看 TypeCellOS/BlockNote 的全部 Issue
相似的 Issue
-
Type/Bug
难度 2/5 1-3 小时 新手友好度 78/100
OpenNSW/nsw-srilanka#497 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
0xMiden/bridge-portal#132 ·
-
react-doctor severity:warning tech-debt
难度 1/5 1 小时以内 新手友好度 88/100
digidem/comapeo-cloud-app#403 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 78/100