Ticket #2368: 2368_2.patch
File 2368_2.patch, 1.6 KB (added by , 15 years ago) |
---|
-
_whatsnew.html
101 101 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2376">#2376</a>] FCK.InsertHtml() 102 102 will now insert to the last selected position after the user has selected things outside 103 103 of FCKeditor, in IE.</li> 104 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2368">#2368</a>] Fixed broken protect 105 source logic for comments in IE.</li> 104 106 </ul> 105 107 <p> 106 108 <a href="_whatsnew_history.html">See previous versions history</a></p> -
editor/_source/internals/fck.js
1101 1101 ToHtml : function() 1102 1102 { 1103 1103 for ( var i = 0 ; i < this.Elements.length ; i++ ) 1104 this.Elements[i] = this.Elements[i].outerHTML ; 1104 { 1105 this.Elements[i] = '<div> ' + this.Elements[i].outerHTML + '</div>' ; 1106 this.Elements[i].isHtml = true ; 1107 } 1105 1108 }, 1106 1109 1107 1110 ToElements : function() … … 1109 1112 var node = FCK.EditorDocument.createElement( 'div' ) ; 1110 1113 for ( var i = 0 ; i < this.Elements.length ; i++ ) 1111 1114 { 1112 if ( t ypeof( this.Elements[i] ) == 'string')1115 if ( this.Elements[i].isHtml ) 1113 1116 { 1114 1117 node.innerHTML = this.Elements[i] ; 1115 this.Elements[i] = node.firstChild ;1118 this.Elements[i] = node.firstChild.removeChild( node.firstChild.lastChild ) ; 1116 1119 } 1117 1120 } 1118 1121 }