Select Page

Tag: ckeditor4

Script that will check the character count in CKEditor 4

Script that will check the character count in CKEditor 4

This following script sets an event listener on the CKEditor instance and gets triggered on every keyup event. It then retrieves the data from the editor, removes any HTML tags from it using a regular expression, and counts the remaining characters. Finally, it logs...