RadLikeWhoa / Countable

Add live paragraph-, word- and character-counting to an HTML element.
https://sacha.me/Countable
MIT License
1.64k stars 134 forks source link

Countable on a non-input element #36

Closed GRA0007 closed 9 years ago

GRA0007 commented 9 years ago

How would I go about adjusting the code to count words in a non-input element? i.e. an div element with a 'contenteditable' attribute.

RadLikeWhoa commented 9 years ago

This is already possible using the default syntax. You can use either the live or the once method, both work just fine.