Index: _whatsnew.html
===================================================================
--- _whatsnew.html (revision 2229)
+++ _whatsnew.html (working copy)
@@ -91,6 +91,8 @@
[#1229] Converting
multiple contiguous paragraphs to Formatted will now be merged into a single
<PRE> block.
+ [#2368] Fixed broken protect
+ source logic for comments in IE.
See previous versions history
Index: editor/_source/internals/fck.js
===================================================================
--- editor/_source/internals/fck.js (revision 2229)
+++ editor/_source/internals/fck.js (working copy)
@@ -1101,7 +1101,10 @@
ToHtml : function()
{
for ( var i = 0 ; i < this.Elements.length ; i++ )
- this.Elements[i] = this.Elements[i].outerHTML ;
+ {
+ this.Elements[i] = ' ' + this.Elements[i].outerHTML + '
' ;
+ this.Elements[i].isHtml = true ;
+ }
},
ToElements : function()
@@ -1109,10 +1112,10 @@
var node = FCK.EditorDocument.createElement( 'div' ) ;
for ( var i = 0 ; i < this.Elements.length ; i++ )
{
- if ( typeof( this.Elements[i] ) == 'string' )
+ if ( this.Elements[i].isHtml )
{
node.innerHTML = this.Elements[i] ;
- this.Elements[i] = node.firstChild ;
+ this.Elements[i] = node.firstChild.lastChild ;
}
}
}