jayrajm97
(JayRaj Makhar)
2021 年 5 月 17 日午後 5: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 日午前 7:09
3
こんにちは、私もこの質問に興味があります。
それ自体、Discourse のコアには通知機能があります。もし、サイト管理者が設定した数よりも少ない文字数を入力した場合、最小文字数を満たす必要があるという通知が表示されます。そのため、このプラグインは、最小文字数だけでなく最大文字数も表示できれば、より便利になると思います。また、入力済みの文字数を表示することも無駄ではないでしょう。私の考えを伝えられたことを願っています(Google翻訳を使用しています)。
Aizada_M
(Aizada M)
2023 年 9 月 29 日午前 7: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!
(元のディスコースプラグインに大まかに基づいています)。
「いいね!」 7
Heliosurge
(Dan DeMontmorency)
2023 年 9 月 29 日午後 10:23
6
これは素晴らしい追加機能です! プラグインの必要がなくなり、より幅広い層での利用が可能になります!
「いいね!」 2
Aizada_M
(Aizada M)
2023 年 10 月 3 日午前 9:03
7
素晴らしい、確かに主題の重要な要素です、それは単に素晴らしいです!
「いいね!」 2
spamless
(Dallman Ross)
2023 年 11 月 9 日午後 9:37
8
よさそうです。実装方法を学ぶのに少し手伝いが必要です。
Moin
2023 年 11 月 9 日午後 9:55
9
「いいね!」 1
spamless
(Dallman Ross)
2023 年 11 月 9 日午後 10:14
10
ありがとうございます。そこまでは自分でできました。以前にもテーマやコンポーネントをインストールしたことがあります。しかし、そこにどのURLを貼り付ければよいのか分かりませんでした。
https://github.com/merefield/discourse-tc-character-count/tree/main
を試しましたが、もう一つURLをそこから掘り下げてみたのが2回目の試みでした。
どちらも機能しなかったので、質問することにしました。まったく見当違いの推測をしていたのです。
[編集:その後、解決しました。追加すべきはこれです:
https://github.com/merefield/discourse-tc-character-count.git
これでうまくいきました。ありがとうございました!]
このURLからインストールできます: https://github.com/merefield/discourse-tc-character-count
「いいね!」 2
素晴らしい。トピックのタイトルで動作させる方法はありますか?
「いいね!」 2
merefield
(Robert)
2023 年 11 月 30 日午後 1:05
13
それは素晴らしいアイデアです … PRをお待ちしています!
「いいね!」 3
merefield
(Robert)
2025 年 2 月 18 日午後 11:34
14
完了しました!
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やフォークなどの経験がないためです。
結果は以下のようになりました。
ここで詳細を読み、私の提案に同意するかどうかを確認できます。
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