Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: [OT] Limiting word count with TinyMCE

by markong (Pilgrim)
on Apr 08, 2019 at 00:39 UTC ( [id://1232260]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1232260]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-26 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found