# 作曲家字符数

**URL:** https://meta.discourse.org/t/composer-character-count/358733
**Category:** Theme component
**Created:** [2025年三月25日 09:46 UTC](https://meta.discourse.org/t/composer-character-count/358733 "2025-03-25T09:46:19Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2025年三月25日 09:46 UTC](https://meta.discourse.org/t/composer-character-count/358733/1 "2025-03-25T09:46:19Z")

</div>

| | | |\n|— | — | —|\n|:information\_source: | **摘要** | 一个主题组件，用于同时显示输入的字符数以及发帖所需的字符数。分别跟踪帖子正文和主题标题。|\n|:hammer\_and\_wrench: | **存储库链接** | [https://github.com/merefield/discourse-tc-character-count|\n|:open\_book:](https://github.com/merefield/discourse-tc-character-count%7C%5Cn%7C:open_book:) | **安装指南** | [https://meta.discourse.org/t/install-a-theme-or-theme-component/63682|\n|:heart:](https://meta.discourse.org/t/install-a-theme-or-theme-component/63682%7C%5Cn%7C:heart:) | **赞助** | 请考虑成为我开源工作的持续[赞助者](https://github.com/sponsors/merefield)，金额根据您的资源和需求而定，以确保此组件获得应有的维护，并在将来继续适用于您的网站。|\n\n喜欢这个主题组件吗？请在[GitHub](https://github.com/merefield/discourse-tc-character-count)上给它点:star:\n\n[wrap=theme-install-button repoUrl="[https://github.com/merefield/discourse-tc-character-count\](https://github.com/merefield/discourse-tc-character-count%5C)" repoName="Character Count"]\n安装此主题组件\n[/wrap]\n\n

 ![一位西装革履的人指向一张带有文字和数字的海报。(由人工智能配图)](https://global.discourse-cdn.com/meta/original/4X/e/9/f/e9febdcf5c405c82ed32bbbb2c04377757d69850.jpeg)\n\n## 概述\n\nA Theme Component to simultaneously display count the number of characters typed in the composer as well as the required number to post. Two separate displays for Post body and Title.\n\nProvides users information to avoid them failing to Post because they’ve not entered the minimum lengths required by global settings.\n\nYou can configure it to make the display disappear once the minimum number of characters has been reached using setting:\n\n ![该图像显示了一个文本编辑器界面，其中包含部分输入的标题“this is a nice helpful...”以及格式选项和添加更多主题或标签的选项。(由人工智能配图)](https://global.discourse-cdn.com/meta/original/4X/8/8/7/887780fee32312d6f4345d51d568b0b6289dfca9.png)\n\n## 致谢\n\nOriginally based on the #official [plugin](https://meta.discourse.org/t/discourse-characters-required/77195?u=merefield), but this is a much simpler install. I have since modernised the code, added additional logic and made the interface language agnostic.

---

_[View the full topic](https://meta.discourse.org/t/composer-character-count/358733)._
