# Composer Button フェスティバル

**URL:** <https://meta.discourse.org/t/composer-button-bonanza/352525>\
**Category:** Theme component\
**Tags:** composer\
**Created:** [2025 年 2 月 16 日午前 5:07 UTC](https://meta.discourse.org/t/composer-button-bonanza/352525 "2025-02-16T05:07:12Z")\
**Posts on this page:** 1\
**Showing post:** 32

<div class="post-metadata">

**Author:** ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)\
**Post date:** [2026 年 3 月 21 日午後 4:51 UTC](https://meta.discourse.org/t/composer-button-bonanza/352525/32 "2026-03-21T16:51:26Z")

</div>

> [@mdoggydog](#):
>
> @renato, これらは誰かの認識範囲内にありますか？修正のタイムラインはありますか？

具体的に何のためにそれらが必要なのか共有していただけますか？

textareaエディタしかなかったときに構築された一部のAPIは、リッチエディタで完全な同等性を持つことは意図されておらず、ProseMirrorのすべての機能を中間的な抽象化に持ち込むことは当社の意図ではありません。

可能であれば、また必要であれば、それらの場所を改善することはできますが、一般的に複雑な操作が必要な場合は、登録されたリッチエディタ拡張機能の`commands`キーを介して、ProseMirrorの依存関係に直接アクセスすることがよくあります。例えば：

> <https://github.com/discourse/discourse/blob/fb8ef7ee72f062074782f676794c01dd93bf4a14/plugins/spoiler-alert/assets/javascripts/lib/rich-editor-extension.js#L86-L88>

> <https://github.com/discourse/discourse/blob/fb8ef7ee72f062074782f676794c01dd93bf4a14/plugins/spoiler-alert/assets/javascripts/initializers/spoiler-alert.js#L25-L35>

この例では、`applySurround`は選択されたテキストにスポイラーのbbcodeを盲目的に適用しますが、`toggleSpoiler`には、すでにスポイラーノード内にあるかどうか、インラインスポイラーかブロックスポイラーかなどを判断するためのProseMirrorのすべての機能があります。

---

_[View the full topic](https://meta.discourse.org/t/composer-button-bonanza/352525)._
