in reply to [OT] Limiting word count with TinyMCE

This code does not work correctly?

Who knows? perl does not even accept it! Have you tried executing the JS somewhere?

Also:
}else if (writtenWords < maxWord) {
should be written as a simple } else {

An "else if" clause is used when there are more than 2 branches.

Replies are listed 'Best First'.
Re^2: [OT] Limiting word count with TinyMCE
by VC (Novice) on Apr 08, 2019 at 01:21 UTC
    <script type="text/javascript" src="/js/tinymce/jquery.tinymce.min.js" +></script> <script type="text/javascript" src="/js/tinymce/tinymce.min.js"></scri +pt>

    I changed it to just "else"

    Still the same?

      I think this might have been irony.

      This is a Perl board, could you please elaborate the connection to Perl?

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

        I am using it in perl, in a template where the user enters there job description in a textarea text box