Ticket #5114: 5114.patch

File 5114.patch, 1.0 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/selection/plugin.js

     
    141141
    142142                                                                // IE before version 8 will leave cursor blinking inside the document after
    143143                                                                // editor blurred unless we clean up the selection. (#4716)
    144                                                                 var env = CKEDITOR.env;
    145                                                                 if( env.ie && env.version < 8 )
    146                                                                         editor.document.$.selection.empty();
     144                                                                if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 )
     145                                                                {
     146                                                                        // IE stack overflows when we're doing so inside table. (#5114)   
     147                                                                        var parent =
     148                                                                                savedRange
     149                                                                                && savedRange.parentElement
     150                                                                                && savedRange.parentElement();
     151
     152                                                                        if( !( parent && parent.tagName.toLowerCase() in CKEDITOR.dtd.$tableContent ) )
     153                                                                                editor.document.$.selection.empty();
     154                                                                }
    147155                                                        });
    148156
    149157                                                // IE fires the "selectionchange" event when clicking
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy