mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Implementing Countable.js to count words.
Changed the words_count method to work with countable.js Added the gem for countable.js
This commit is contained in:
parent
8b5d6603af
commit
c1b81755c9
5 changed files with 17 additions and 14 deletions
|
|
@ -14,7 +14,7 @@
|
|||
= link_to 'Change your avatar here', 'https://gravatar.com'
|
||||
= f.input :affiliation, as: :string,
|
||||
hint: 'This could be a company, a user group, or nothing at all.'
|
||||
= f.input :biography, input_html: { rows: 5, data: { provide: 'markdown-editable' }, 'onkeyup' => "word_count(this, 'biography-count', 150)" },
|
||||
= f.input :biography, input_html: { rows: 5, data: { provide: 'markdown-editable' } },
|
||||
hint: markdown_hint
|
||||
You have used
|
||||
%span#bio_length
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue