Skip to content

Instantly share code, notes, and snippets.

View fuzenco's full-sized avatar

Fuzen Co. fuzenco

View GitHub Profile
@fuzenco
fuzenco / CKEditor fix
Created February 27, 2012 03:12
Remove those pesky CKEditor unwanted paragraphs
In jQuery:
<script type="text/javascript">
$('p').each(function() {
var $this = $(this);
if($this.html().replace(/\s|&nbsp;/g, '').length == 0)
$this.remove();
});