Ticket #5441: ie_destroy_bug.patch
File ie_destroy_bug.patch, 702 bytes (added by , 13 years ago) |
---|
-
.js
old new 239 239 if ( CKEDITOR.env.ie ) 240 240 { 241 241 container.setStyle( 'display', 'none' ); 242 243 var $range = document.body.createTextRange(); 244 $range.moveToElementText( container.$ ); 242 243 var $range = document.body.createTextRange(), 244 container_el = container.$, 245 in_body = false; 246 247 while (container_el = container_el.parentNode) { 248 if (container_el == document.body) in_body = true; 249 } 250 251 if(in_body) 252 $range.moveToElementText( container.$ ); 253 else 254 $range.moveToElementText( document.body ); 245 255 try 246 256 { 247 257 // Putting the selection to a display:none element - this will certainly