# 장비 편집기 메뉴에 왜 이렇게 많은 옵션이 있나요?

**URL:** https://meta.discourse.org/t/why-so-many-options-in-the-gear-editor-menu/239497
**Category:** UX
**Created:** [9월 20, 2022, 2:12오전 UTC](https://meta.discourse.org/t/why-so-many-options-in-the-gear-editor-menu/239497 "2022-09-20T02:12:37Z")
**Posts on this page:** 1
**Showing post:** 18

<div class="post-metadata">

### Author: ![sableraph](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sableraph/32/294589_2.png) [@sableraph](https://meta.discourse.org/u/sableraph)
#### Post date: [2월 9, 2024, 12:19오후 UTC](https://meta.discourse.org/t/why-so-many-options-in-the-gear-editor-menu/239497/18 "2024-02-09T12:19:35Z")

</div>

답변해 주셔서 감사합니다!

테마를 설치하는 방법을 잘 모르겠지만, 님의 원래 컴포넌트를 다음과 같이 패치하는 데는 성공했습니다:

```html
<script type="text/discourse-plugin" version="0.8">
  const container = Discourse. __container__ ;
  this.capabilities = container.lookup("capabilities:main");

  if (this.capabilities.touch) {
    withPluginApi("0.8", api => {
        api.onToolbarCreate(toolbar => {
          toolbar.addButton({
            id: "code",
            group: "insertions",
            icon: "code",
            preventFocus: true,
            trimLeading: true,
            action: "formatCode",
          });
        });
      });
  }
</script>

```

CSS는 그대로 유지됩니다.

---

_[View the full topic](https://meta.discourse.org/t/why-so-many-options-in-the-gear-editor-menu/239497)._
