Index: _source/core/htmlparser/fragment.js
===================================================================
--- _source/core/htmlparser/fragment.js (revision 6348)
+++ _source/core/htmlparser/fragment.js (revision )
@@ -108,9 +108,9 @@
}
}
- function sendPendingBRs( brsToIgnore )
+ function sendPendingBRs()
{
- while ( pendingBRs.length - ( brsToIgnore || 0 ) > 0 )
+ while ( pendingBRs.length )
currentNode.add( pendingBRs.shift() );
}
Index: _source/plugins/wysiwygarea/plugin.js
===================================================================
--- _source/plugins/wysiwygarea/plugin.js (revision 6386)
+++ _source/plugins/wysiwygarea/plugin.js (revision )
@@ -313,9 +313,13 @@
var win = editor.window,
doc = editor.document,
body = editor.document.getBody(),
+ bodyFirstChild = body.getFirst(),
bodyChildsNum = body.getChildren().count();
- if ( !bodyChildsNum || ( bodyChildsNum == 1&& body.getFirst().hasAttribute( '_moz_editor_bogus_node' ) ) )
+ if ( !bodyChildsNum
+ || bodyChildsNum == 1
+ && bodyFirstChild.type == CKEDITOR.NODE_ELEMENT
+ && bodyFirstChild.hasAttribute( '_moz_editor_bogus_node' ) )
{
restoreDirty( editor );
@@ -981,6 +985,10 @@
'