Index: wysiwyg.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/wysiwyg/wysiwyg.js,v retrieving revision 1.15.2.3 diff -u -p -r1.15.2.3 wysiwyg.js --- wysiwyg.js 25 Sep 2010 00:47:20 -0000 1.15.2.3 +++ wysiwyg.js 7 Nov 2010 11:58:45 -0000 @@ -212,6 +212,21 @@ Drupal.wysiwyg.getParams = function(elem }; /** + * Removes unwanted 'blank'

and
tags from an HTML string. + * + * Editors sometimes leave tags like

 

when nothing was entered. + * This function removes those tags to allow for truly empty fields. + * It also removes an empty div left by Firebug if it was enabled. + * + * @param content + * An HTML string to remove tags from. + */ +Drupal.wysiwyg.removeBlankTags = function(content) { + content = content.replace(/