craftcms / redactor

Edit rich text content in Craft CMS using Redactor by Imperavi.
https://plugins.craftcms.com/redactor
MIT License
100 stars 49 forks source link

Craft character limit and counter for Redactor RTF #256

Closed ghost closed 4 years ago

ghost commented 7 years ago

It would be nice to have the ability to set character limits with the counter like in plain text fields for RTF.

Currently, it's only possible to set character limit per Redactor config, that starts to being messy with few fields with different limits (with limiter plugin).

Also, Redactor counter plugin doesn't work for me at all, though even if it would work, having counted character amount is not so oblivious like having left characters counter.

iparr commented 4 years ago

Using the "plugins": ["counter"] in a Redactor config .json now enables the aforementioned Redactor config (on Craft 3.5). Which is great.

However, it looks ugly as sin (see attached)! Almost unusable with clients. Could this be tweaked to bring it inline with the rest of the interface?

Screenshot 2020-08-14 at 17 45 41

brandonkelly commented 4 years ago

😬

pette87 commented 4 years ago

Same issue.

JSON Config:

{
  "buttons": ["html", "bold", "italic"],
  "plugins": ["fullscreen", "limiter", "counter"],
  "linkNewTab": true,
  "toolbarFixed": true,
  "limiter": 235
}

In backend no display counter and no limit

brandonkelly commented 4 years ago

Just released Redactor 2.7.3 which fixes this.

pette87 commented 4 years ago

It works now 👍 Thank you very much :)

samuelreichor commented 1 year ago

Still having the same issue.. I have put the js file in config/redactor/plugins and that is my config:

{ "plugins": [ "limiter" ], "toolbarFixed": true, "limiter": 20 }