}
function doFCKeditorSave(){
+ var text;
for ( var i = 0 ; i < fckLaunchedJsId.length ; i++ ) {
- if ( document.getElementById( fckLaunchedTextareaId[i] ).style.display == 'none' )
- document.getElementById( fckLaunchedTextareaId[i] ).value = FCKeditorAPI.GetInstance( fckLaunchedJsId[i] ).GetXHTML(true);
+ if ( document.getElementById( fckLaunchedTextareaId[i] ).style.display == 'none' ) {
+ text = FCKeditorAPI.GetInstance( fckLaunchedJsId[i] ).GetXHTML(true);
+ // #372150 and #374386
+ if (text == '<br />' || text == '<p> </p>' || text == '<div> </div>') {
+ text = '';
+ }
+ document.getElementById( fckLaunchedTextareaId[i] ).value = text;
+ }
}
return true; //continue submitting
}