# 게시글 텍스트에 복사 버튼 추가하는 방법

**URL:** https://meta.discourse.org/t/how-to-add-copy-button-to-post-text/277902
**Category:** Support
**Created:** [9월 5, 2023, 7:48오후 UTC](https://meta.discourse.org/t/how-to-add-copy-button-to-post-text/277902 "2023-09-05T19:48:49Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [9월 5, 2023, 7:56오후 UTC](https://meta.discourse.org/t/how-to-add-copy-button-to-post-text/277902/2 "2023-09-05T19:56:07Z")

</div>

이것은 `코드 블록에 복사 버튼 표시` 사이트 설정입니다.

> [@코드 블록 내용을 클립보드에 복사](https://meta.discourse.org/t/copy-codeblock-contents-to-clipboard/148855):
>
> mega Now live in core Discourse is the ability to show a copy button for codeblocks! import { createWidget } from 'discourse/widgets/widget'; createWidget('my-widget', { tagName: 'div.hello', html() { return "hello world"; } }); This feature is off by default, but if your community could benefit from it, you can turn it on by enabling the show copy button on codeblocks site setting. Some notes about the feature: The button shows up on pre \> code codeblocks, but not inline, …

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-copy-button-to-post-text/277902)._
