Ticket #4848: 4848.patch

File 4848.patch, 836 bytes (added by Frederico Caldeira Knabben, 16 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    661661                                                                else if ( editor.window )
    662662                                                                {
    663663                                                                        editor.window.focus();
     664
     665                                                                        // Force the selection to happen, in this way
     666                                                                        // we guarantee the focus will be there. (#4848)
     667                                                                        if ( CKEDITOR.env.ie )
     668                                                                        {
     669                                                                                var sel = editor.getSelection();
     670                                                                                sel = sel && sel.getNative();
     671                                                                                var range = sel && sel.type && sel.createRange();
     672                                                                                if ( range )
     673                                                                                {
     674                                                                                        sel.empty();
     675                                                                                        range.select();
     676                                                                                }
     677                                                                        }
     678
    664679                                                                        editor.selectionChange();
    665680                                                                }
    666681                                                        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy