Ticket #5441: 5441_2.patch
File 5441_2.patch, 2.4 KB (added by , 13 years ago) |
---|
-
_source/plugins/elementspath/plugin.js
133 133 134 134 editor.on( 'contentDomUnload', function() 135 135 { 136 getSpaceElement().setHtml( emptyHtml ); 136 // If the spaceElement hasn't been initialized, don't try to do it at this time 137 // Only reuse existing reference. 138 spaceElement && spaceElement.setHtml( emptyHtml ); 137 139 }); 138 140 139 141 editor.addCommand( 'elementsPathFocus', commands.toolbarFocus ); -
_source/plugins/wysiwygarea/plugin.js
773 773 editor.document.clearCustomData(); 774 774 775 775 iframe.clearCustomData(); 776 777 /* 778 * IE BUG: When destroying editor DOM with the selection remains inside 779 * editing area would break IE7/8's selection system, we have to put the editing 780 * iframe offline first. (#3812 and #5441) 781 */ 782 iframe.remove(); 776 783 }, 777 784 778 785 unload : function( holderElement ) -
_source/themes/default/theme.js
233 233 container.clearCustomData(); 234 234 editor.element.clearCustomData(); 235 235 236 /*237 * IE BUG: Removing the editor DOM elements while the selection is inside238 * the editing area would break IE7/8's selection system. So we need to put239 * the selection back to the parent document without scrolling the window.240 * (#3812)241 */242 if ( CKEDITOR.env.ie )243 {244 container.setStyle( 'display', 'none' );245 246 var $range = document.body.createTextRange();247 $range.moveToElementText( container.$ );248 try249 {250 // Putting the selection to a display:none element - this will certainly251 // fail. But! We've just put the selection document back to the parent252 // document without scrolling the window!253 $range.select();254 }255 catch ( e ) {}256 }257 258 236 if ( container ) 259 237 container.remove(); 260 238