Forum
Word count in blog app post template not updating as I type
For the new template attribute count = "words"
, should this update as I type? I'm seeing a word total when I edit a blog post, and it updates when I save the post, but the total does not change as I type.
I have this in my post.html template
<perch:blog id="postDescHTML" type="textarea" editor="redactor" html="true" label="Post" size="xxl autowidth" order="5" count="words" />
Just tried the same with count = "chars"
on the above and it's the same (no live updating). Yet, this textarea in the same template works just fine:
<perch:blog id="excerpt" type="textarea" label="Excerpt" order="6" suppress="true" size="m autowidth" count="chars/words" />
You're using Redactor, so the content doesn't go into the textarea as you type, only when you save.
The value of the
count
attribute should bechars
ORwords
not both.OK re redactor
Yes, know about chars OR words, I put both in there to illustrate that I'd done both.