Ticket #3801: 3801_2.patch
| File 3801_2.patch, 1.7 KB (added by , 17 years ago) |
|---|
-
CHANGES.html
78 78 <li><a href="http://dev.fckeditor.net/ticket/3829">#3829</a> : Fixed remove empty link on output data.</li> 79 79 <li><a href="http://dev.fckeditor.net/ticket/3730">#3730</a> : Indent is performing on the whole 80 80 block instead of selected lines in enterMode = BR.</li> 81 <li><a href="http://dev.fckeditor.net/ticket/3801">#3801</a> : Comments at the start of the document was lost in IE.</li> 81 82 </ul> 82 83 <h3> 83 84 CKEditor 3.0 RC</h3> -
_source/plugins/htmldataprocessor/plugin.js
256 256 return data; 257 257 } 258 258 259 function filterWithInnerHtml( data ) 260 { 261 var div = document.createElement( 'div' ); 262 263 // IE: Comments at the start of the document get lost (#3801) 264 if ( CKEDITOR.env.ie && /^<!--/.test( data ) ) 265 { 266 div.innerHTML = 'a' + data; 267 data = div.innerHTML.substr( 1 ); 268 } 269 else 270 { 271 div.innerHTML = data; 272 data = div.innerHTML; 273 } 274 275 return data; 276 } 277 259 278 CKEDITOR.plugins.add( 'htmldataprocessor', 260 279 { 261 280 requires : [ 'htmlwriter' ], … … 310 329 311 330 // Call the browser to help us fixing a possibly invalid HTML 312 331 // structure. 313 var div = document.createElement( 'div' ); 314 div.innerHTML = data; 315 data = div.innerHTML; 332 data = filterWithInnerHtml( data ); 316 333 317 334 if ( CKEDITOR.env.ie ) 318 335 data = unprotectEncodedTags( data );
