im using tinyMCE editor and i want to limit the user to 50 charactors.
if they enter more than this limit, prompt them and ask if they want to enter more. if yes, show an additional textarea.
if i enter more than 50 charactors, i get prompted so im happy that my max character check is working.
however if i try to edit the textarea (e.g. click on the textarea etc etc), i keep getting prompted that im over the max limit and therefore i cannot edit the textarea.
im keeping track of the number of charactors entered into the textarea using this event handler:
handle_event_callback : "CheckSize"
var x = tinyMCE.getContent();
if(x.length > 50)
if(confirm('You have reached the maximum size for this field. Do you require to enter more?'))
//show extra textarea
//hide extra textarea