# 如何为我的 markdown 扩展添加富文本编辑器支持？

**URL:** https://meta.discourse.org/t/how-do-i-add-rich-text-editor-support-to-my-markdown-extension/387753
**Category:** Development
**Created:** [2025 年11 月 6 日 07:32 UTC](https://meta.discourse.org/t/how-do-i-add-rich-text-editor-support-to-my-markdown-extension/387753 "2025-11-06T07:32:30Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### 作者： ![ego-lay\_atman-bay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ego-lay_atman-bay/32/255458_2.png) [@ego-lay\_atman-bay](https://meta.discourse.org/u/ego-lay_atman-bay)
#### 发布日期： [2025 年11 月 10 日 14:23 UTC](https://meta.discourse.org/t/how-do-i-add-rich-text-editor-support-to-my-markdown-extension/387753/6 "2025-11-10T14:23:10Z")

</div>

我的 bbcode 标签有 `[snapblocks]` 和 `[sb]`，其中 `[sb]` 是行内标签，`[snapblocks]` 是块级标签。按下工具栏按钮时，它会切换行内标签，但在我选择一段文本时，它不会切换块级标签。

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-add-rich-text-editor-support-to-my-markdown-extension/387753)._
