Tag: ckeditor4
UI Components
Here is a simple method with demo to get output free of p tags from instance of CKEditor 4 DEMO See the Pen CKEditor 4 – Strip p tags from output by Puneet Sharma (@webdevpuneet) on CodePen.
JavaScript
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...