Opened 12 years ago

Closed 12 years ago

#1214 closed enhancement (wontfix)

Setting a limit to the "number of Words" entered

Reported by: guest Owned by: gogo
Priority: normal Milestone: 0.96
Component: Xinha Core Version: trunk
Severity: normal Keywords: charcounter wordcount


Hello Everyone,

I am working on a project where I need to set a limit to the maximum number of Words [not chars].

-->> If the number of words is below 250, It should throw an error saying that the number of words is less.
-->> If the words are above 2000, it should throw an error saying that the number of words is above the limit.

I am using CharCounter?.js plugin to show me the number of Words. But I was wondering how to find out the 'number' of Words entered and then set a limit to 2000 words.

-->>> If it goes above the limit, it shouldnt allow the user to type more words.

I looked at the forum but it mainly talks about how to make the CharCounter? plugin work. I dont want to make any changes with the plugin [Because I know that the 'number' of words is set in a variable called '_Words']

is there any other possibility to find and set the limit?

Thanks in advance.

Best Regards,

Change History (1)

comment:1 Changed 12 years ago by gogo

  • Resolution set to wontfix
  • Status changed from new to closed

This is something you probably should do on the server end. But you could probably make a new plugin for yourself based on CharCounter?. Outside the scope though.

Note: See TracTickets for help on using tickets.