Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Ability to change the custom block type to another

未關閉
#2,401 3 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 3 天內回覆

@matthewlipski 已經在處理了。

開始於 2026年2月3日。

評估

這個 Issue 還沒有評估資料。

描述

bug:P3 sponsor

It would be very helpful if BlockNote provided a native way to change a custom block type to another block type.

Currently, when selecting text inside BlockNote’s built-in blocks, the formatting toolbar appears with a Block Type dropdown that allows changing the block type. However, this dropdown is not available for custom blocks, which makes it impossible to convert them using the same UX.

Current Limitation

  • Built-in blocks expose the Block Type dropdown in the formatting toolbar
  • Custom blocks do not expose this control
  • As a result, users cannot convert a custom block into another block type using the native UI

Existing Workaround

BlockNote allows developers to manually construct the content of the formatting toolbar. However, this approach has several drawbacks:

  • The formatting toolbar dynamically adapts based on context (e.g. links, images, tables, etc.)
  • Manually reconstructing the toolbar risks:
    • Breaking built-in toolbar logic in certain states
    • Missing context-specific behaviors
    • Losing compatibility with future toolbar features or components

Why Native Support Matters

  • Ensures consistent UX between built-in and custom blocks
  • Avoids fragile workarounds and duplicated logic
  • Preserves automatic toolbar behavior and future extensibility
  • Makes custom blocks feel like first-class citizens in the editor

Ideally, custom blocks should be able to opt into the same Block Type dropdown behavior as built-in blocks without requiring manual toolbar reconstruction.

主要語言
TypeScript
星號
10.2k
分支
778
平均合併
5 天 22 小時
30 天內合併 PR
28

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

TypeCellOS/BlockNote 的其他 Issue

查看 TypeCellOS/BlockNote 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。