# 预填 composer 链接生成器

**URL:** https://meta.discourse.org/t/prefilled-composer-link-generator/326460
**Category:** Theme component
**Created:** [2024年九月14日 01:02 UTC](https://meta.discourse.org/t/prefilled-composer-link-generator/326460 "2024-09-14T01:02:03Z")
**Posts on this page:** 1
**Showing post:** 1

<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: [2024年九月14日 01:02 UTC](https://meta.discourse.org/t/prefilled-composer-link-generator/326460/1 "2024-09-14T01:02:03Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **摘要** | 在编辑器底部添加一个按钮，根据当前内容生成一个预填充作曲家的链接 |
| 👓 | **预览** | [Theme Creator](https://discourse.theme-creator.io/theme/Moin/prefilled-composer-link-generator) |
| 🛠 | **仓库** | [GitHub - moin-Jana/prefilled-composer-generator: Adds a button at the bottom of the editor that generates a link to a prefilled composer based on the current content](https://github.com/moin-Jana/prefilled-composer-generator) |
| ❓ | **安装指南** | [如何安装主题或主题组件](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) |
| 📖 | **不熟悉 Discourse 主题？** | [Discourse 主题使用入门指南](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) |

Install this theme component

此主题组件在作曲家的关闭按钮旁边添加了一个按钮，该按钮会使用当前内容生成一个预填充作曲家的链接。在创建新主题、个人消息或编辑主题或消息的第一个帖子时，会显示该按钮。此外，还有一个设置允许您指定哪些组可以看到该按钮。

| 设置 | 描述 |
| --- | --- |
| `restrict_to_groups` | 仅为所选组的成员显示复制按钮 |

 ![这是用户界面的截图，显示了一个带有占位符文本“This is an awesome topic”的文本框。底部有一个链接图标。(由 AI 题注)](https://global.discourse-cdn.com/meta/original/4X/0/c/f/0cfab87a6e72e8b1af6a75e308981c1fa80aa29a.jpeg)

 ![图像显示一个带有弹出窗口的计算机屏幕，其中包含预填充作曲家链接的长 URL。(由 AI 题注)](https://global.discourse-cdn.com/meta/original/4X/1/c/4/1c456c07899c2ae494c6a8efce6dbbe95454a7c0.jpeg)

有关如何手动创建主题和消息链接的信息，请参阅有关[创建带有预填充信息的链接以开始新主题](https://meta.discourse.org/t/creating-a-link-to-start-a-new-topic-with-pre-filled-information/28074)和[创建预填充的个人消息链接](https://meta.discourse.org/t/creating-pre-filled-personal-message-links/35984)的文档。

除了为他人生成链接外，您还可以使用此按钮将草稿转换为链接。这可以作为一次只能有一个草稿的限制的变通方法，允许您保存并稍后继续处理您的草稿。

---

_[View the full topic](https://meta.discourse.org/t/prefilled-composer-link-generator/326460)._
