jayrajm97
(JayRaj Makhar)
2021 年5 月 17 日 17:14
1
Is there a way to show character count while writing a description?
I got this plugin, but the drawback is this sets a minimum number of characters and I want to show the number of characters used.
In the below screenshot, it’s “20 characters required”, I want it as “Character Count: 300”
Please get in touch if anyone can help in tweaking the code.
5 个赞
spamless
(Dallman Ross)
2022 年4 月 10 日 12:21
2
此建议正是我打算发布的内容,也是我找到此现有主题的原因。我花了一整周的时间设置我的网站,添加类别和描述。UI 建议将初始描述保持在 200 个字符以内是很好的建议。我希望在编辑模式下能看到字符计数!
我一直以来都将描述写在可以显示字符计数的编辑器中,然后将最终确定的文本粘贴回 Discourse 描述中。
5 个赞
Aizada_M
(Aizada M)
2023 年9 月 29 日 07:09
3
您好,我也对这个问题感兴趣。
本身 Discourse 的核心就有一个通知功能;如果一个人输入的字符数少于网站管理员设定的数量,就会显示需要遵守最小字符数的通知。因此,我认为如果这个插件不仅能显示最小字符数,还能显示最大字符数,并且能显示已输入的字符数,那它会更有用。希望我能表达清楚我的想法(我使用谷歌翻译)。
Aizada_M
(Aizada M)
2023 年9 月 29 日 07:28
4
我想添加我的想法。如上所示显示字符,在使用将人工智能集成到 Discourse 的插件时效果会很好,例如 Chatbot (@merefield ) 和 Discourse AI (@Falco )。那些与人工智能工具互动过的人会理解这种控制字符数的功能的必要性,因为在向人工智能撰写请求时,每个字符都要花钱
这两种都适用:
A Theme Component to simultaneously count the number of characters typed in the composer as well as the required number to post!
(并且大致基于原始的 discourse 插件)。
7 个赞
Heliosurge
(Dan DeMontmorency)
2023 年9 月 29 日 22:23
6
这是一个很棒的补充!消除了对插件的需求,并使其能够被更广泛的受众使用!
2 个赞
Moin
2023 年11 月 9 日 21:55
9
1 个赞
spamless
(Dallman Ross)
2023 年11 月 9 日 22:14
10
谢谢。我自己也进展到这一步了。而且我以前也安装过主题和组件。但我不知道该把哪个 URL 填进去。我试了
https://github.com/merefield/discourse-tc-character-count/tree/main
我还从那里找到了另一个 URL,这是我的第二次尝试。
两者都不奏效后,我决定来问一下。你看,我只是在胡乱猜测。
[编辑:我现在弄明白了。要添加的是:
https://github.com/merefield/discourse-tc-character-count.git
这个奏效了。谢谢!]
您可以使用此 URL 进行安装:https://github.com/merefield/discourse-tc-character-count
2 个赞
完成!
main ← add_title_count
opened 11:10PM - 18 Feb 25 UTC
* FEATURE: adds title count with minimum display
* COMPATIBILITY: converts ever… ything to gjs.
* SWANSONG: Discourse is redesigning the Composer so this might be the last hurrah for this Component.
如果你觉得这很棒并且我做得很好,你可以买我一杯咖啡
@fokx
6 个赞
我为自己对组件做了一些小的改动,因为我对 GitHub、fork 等没有经验。
我最终得到了这个:
你可以在这里阅读更多关于它的信息,看看你是否同意我的建议:
Where were you a few hours go to prevent me from having to go through the painful process of installing the plugin?
That is indeed what I wanted.
A few suggestions, if you think they are worth implementing:
1 - Ability to change the color of the text. In my particular case, I like it in the original color. On my non-professional UI expertise, I like to see red only when something is over the limit, for example, too many characters that will throw an error if I try to save, or if it do…
非常感谢 @merefield 提出这个组件!
2 个赞