Lesson Progress
0% Complete
"); }); // count on load window.addEventListener("load", tiny_text_data_counter ) ; function tiny_text_data_counter() { //setTimeout(function() { setInterval(function() { //var tiny_text_data = tinymce.get('content'); var tiny_text_data = tinymce.get('llms_note_text').getContent(); if(tiny_text_data){ //cont = tiny_text_data.getContent().replace(/(]*>|\[([^\]]+)\])|(\s+)/ig,''); cont = tiny_text_data.replace(/(]*>|\[([^\]]+)\])|(\s+)/ig,''); jQuery("#learndash-notes-form #ilc_excerpt_counter").text(cont.length); } }, 300); }