Replies: 0
For Development purpose, I need to know total number of Characters user has typed.
WordPress uses TinyMCE, Using the logic below, I am able to get character count in console if I edit using Text Editor. But it doesn’t work for Visual Editor. WHy ? How to count characters typed in Visual Editor ?
jQuery(function ($) {
$(“html”).load().on(“keyup”, function () {
var content = document.getElementById(“content”).value.length;
});
});