# display:none 없이 툴바 하단 삭제하는 방법?

**URL:** <https://meta.discourse.org/t/how-to-delete-the-toolbar-bottom-but-not-by-display-none/233723>\
**Category:** Development\
**Created:** [7월 23, 2022, 6:46오전 UTC](https://meta.discourse.org/t/how-to-delete-the-toolbar-bottom-but-not-by-display-none/233723 "2022-07-23T06:46:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![FenLanPHE](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fenlanphe/32/265472_2.png) [@FenLanPHE](https://meta.discourse.org/u/FenLanPHE)\
**Post date:** [7월 23, 2022, 6:04오후 UTC](https://meta.discourse.org/t/how-to-delete-the-toolbar-bottom-but-not-by-display-none/233723/3 "2022-07-23T18:04:32Z")

</div>

답변 감사합니다! 그런데 BOLD 버튼을 클릭하면 \*\* 코드가 표시되고, 다시 클릭하면 사라지는 것을 확인했습니다. 제 커스텀 버튼은 다시 클릭했을 때 코드를 제거하는 기능이 없습니다.

해결 방법이 있을까요? 제 커스텀 버튼의 코드는 다음과 같습니다:

```plaintext
<script type="text/discourse-plugin" version="0.8">
  const currentLocale = I18n.currentLocale();
  if (!I18n.translations[currentLocale].js.composer) {
    I18n.translations[currentLocale].js.composer = {};
  }
  I18n.translations[currentLocale].js.composer.ttl_spoiler_text = "Insert hidden content";
  I18n.translations[currentLocale].js.ttl_dice_title = "ttl-spoiler";
  api.onToolbarCreate(function(toolbar) {
    toolbar.addButton({
      id: "ttl-spoiler",
      icon: "ttl-spoiler-icon",
      group: "extras",
      preventFocus: true,
      trimLeading: true,
      perform: (e) => e.applySurround("[spoiler]", "[/spoiler]", "ttl_spoiler_text")
    });
  });
</script>

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-delete-the-toolbar-bottom-but-not-by-display-none/233723)._
