I am using TinyMCE for . My requirement is to limit the character size to 2000 and also to show the remaining characters somewhere below the tool ba
Hope it will work :)
setup: function(ed) { var maxlength = parseInt($('#'+(ed.id)).attr("maxlength")); var count = 0; ed.on('keydown', function(e) { count++; if (count >= maxlength) { alert("false"); return false; } }); },