Ticket #5441: 5441_2.patch

File 5441_2.patch, 2.4 KB (added by Alfonso Martínez de Lizarrondo, 13 years ago)

Updated patch

  • _source/plugins/elementspath/plugin.js

     
    133133
    134134                        editor.on( 'contentDomUnload', function()
    135135                                {
    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 );
    137139                                });
    138140
    139141                        editor.addCommand( 'elementsPathFocus', commands.toolbarFocus );
  • _source/plugins/wysiwygarea/plugin.js

     
    773773                                                                editor.document.clearCustomData();
    774774
    775775                                                                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();
    776783                                                        },
    777784
    778785                                                        unload : function( holderElement )
  • _source/themes/default/theme.js

     
    233233                        container.clearCustomData();
    234234                        editor.element.clearCustomData();
    235235
    236                         /*
    237                          * IE BUG: Removing the editor DOM elements while the selection is inside
    238                          * the editing area would break IE7/8's selection system. So we need to put
    239                          * 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                                 try
    249                                 {
    250                                         // Putting the selection to a display:none element - this will certainly
    251                                         // fail. But! We've just put the selection document back to the parent
    252                                         // document without scrolling the window!
    253                                         $range.select();
    254                                 }
    255                                 catch ( e ) {}
    256                         }
    257 
    258236                        if ( container )
    259237                                container.remove();
    260238
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy