# 模板按钮位置调整

**URL:** https://meta.discourse.org/t/template-button-relocation/288660
**Category:** Development
**Tags:** templates
**Created:** [2023年十二月14日 11:40 UTC](https://meta.discourse.org/t/template-button-relocation/288660 "2023-12-14T11:40:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Aizada\_M](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aizada_m/32/352050_2.png) [@Aizada\_M](https://meta.discourse.org/u/Aizada_M)
#### Post date: [2023年十二月14日 11:40 UTC](https://meta.discourse.org/t/template-button-relocation/288660/1 "2023-12-14T11:40:03Z")

</div>

继续讨论 [Discourse Templates](https://meta.discourse.org/t/discourse-templates/229250)：

> [@saquetim](#):
>
> 要插入模板，您必须先打开回复编辑器，然后单击“附加选项”按钮，然后选择“插入模板”选项。

您好！我想允许用户在帖子编辑器中使用模板，但很难向所有人解释模板在齿轮按钮 ⚙ 内，对大多数人来说，此按钮可能看起来像是某个设置。是否可以使用 CSS 将“插入模板”按钮从齿轮下拉菜单移到编辑器按钮部分的末尾？例如：

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/7/e/07e3b6abbd8daef77a0b8130fd0f0d5b32ebc610.png)

或者这需要更高级的编程知识？请告诉我是否可以以某种方式解决 🙏

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2024年二月25日 20:00 UTC](https://meta.discourse.org/t/template-button-relocation/288660/2 "2024-02-25T20:00:06Z")

</div>

> [@Aizada\_M](#):
>
> 或者它需要更高级的编程知识？

是的。如果你必须拥有这个功能，我建议在#marketplace版块发帖——作曲家工具栏不容易自定义。齿轮通常是新按钮的默认设置。我通过我的[https://meta.discourse.org/t/image-alignment-and-grid/271560组件实现了它，所以你可以从中寻找线索。不过我不记得我具体是怎么实现的了。](https://meta.discourse.org/t/image-alignment-and-grid/271560%E7%BB%84%E4%BB%B6%E5%AE%9E%E7%8E%B0%E4%BA%86%E5%AE%83%EF%BC%8C%E6%89%80%E4%BB%A5%E4%BD%A0%E5%8F%AF%E4%BB%A5%E4%BB%8E%E4%B8%AD%E5%AF%BB%E6%89%BE%E7%BA%BF%E7%B4%A2%E3%80%82%E4%B8%8D%E8%BF%87%E6%88%91%E4%B8%8D%E8%AE%B0%E5%BE%97%E6%88%91%E5%85%B7%E4%BD%93%E6%98%AF%E6%80%8E%E4%B9%88%E5%AE%9E%E7%8E%B0%E7%9A%84%E4%BA%86%E3%80%82)

你可能需要一个插件来实现更多的作曲家工具栏操作——[formatting toolbar plugin](https://meta.discourse.org/t/formatting-toolbar/40649)中包含控制按钮的代码，我认为还有一些关于控制它们的技巧。

---

<div class="post-metadata">

### Author: ![Aizada\_M](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aizada_m/32/352050_2.png) [@Aizada\_M](https://meta.discourse.org/u/Aizada_M)
#### Post date: [2024年二月26日 05:53 UTC](https://meta.discourse.org/t/template-button-relocation/288660/3 "2024-02-26T05:53:53Z")

</div>

非常感谢您的回复 🙌

> [@Lilly](#):
>
> 您可能需要一个插件来进一步操作作曲家工具栏 - [formatting toolbar plugin](https://meta.discourse.org/t/formatting-toolbar/40649) 中包含控制按钮的代码，并且我认为还有一些关于如何控制它们的技巧。

“我已经安装了这个插件，但不幸的是，我不知道如何使用它来移动模板按钮。也许我还是得在 #Marketplace 发布一个公告 😞”

---

<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年二月26日 22:17 UTC](https://meta.discourse.org/t/template-button-relocation/288660/4 "2024-02-26T22:17:04Z")

</div>

也许这篇帖子也有帮助：[Why so many options in the gear editor menu? - #12 by Don](https://meta.discourse.org/t/why-so-many-options-in-the-gear-editor-menu/239497/12?u=moin)  
它将格式文本按钮从齿轮菜单移到了撰写器工具栏。
