Created
February 27, 2012 03:12
-
-
Save fuzenco/1921054 to your computer and use it in GitHub Desktop.
Remove those pesky CKEditor unwanted paragraphs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In jQuery: | |
<script type="text/javascript"> | |
$('p').each(function() { | |
var $this = $(this); | |
if($this.html().replace(/\s| /g, '').length == 0) | |
$this.remove(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment