# 需要帮助集成 Edittext 代码到 Discourse

**URL:** https://meta.discourse.org/t/need-help-integrating-code-wrote-on-edittext-to-the-discourse/285204
**Category:** Development
**Created:** [2023年十一月11日 20:05 UTC](https://meta.discourse.org/t/need-help-integrating-code-wrote-on-edittext-to-the-discourse/285204 "2023-11-11T20:05:13Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2023年十一月12日 00:22 UTC](https://meta.discourse.org/t/need-help-integrating-code-wrote-on-edittext-to-the-discourse/285204/2 "2023-11-12T00:22:19Z")

</div>

您好，

您需要将 JS 插入到 _Head_ 中才能使其正常工作！  
另外，请注意 `button` 的 CSS – 您应该创建一个特定的选择器来避免覆盖默认 CSS。

理想情况下，您应该创建一个[主题组件](https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648/1)，并使用[出口点](https://meta.discourse.org/t/using-plugin-outlet-connectors-from-a-theme-or-plugin/32727/1)来处理 HTML/逻辑。我稍后可以向您展示！

---

_[View the full topic](https://meta.discourse.org/t/need-help-integrating-code-wrote-on-edittext-to-the-discourse/285204)._
