Ticket #5232: 5232.patch

File 5232.patch, 929 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    747747                                                                else if ( editor.window )
    748748                                                                {
    749749                                                                        editor.window.focus();
    750 
    751                                                                         // Force the selection to happen, in this way
    752                                                                         // we guarantee the focus will be there. (#4848)
    753                                                                         if ( CKEDITOR.env.ie )
    754                                                                         {
    755                                                                                 try
    756                                                                                 {
    757                                                                                         var sel = editor.getSelection();
    758                                                                                         sel = sel && sel.getNative();
    759                                                                                         var range = sel && sel.type && sel.createRange();
    760                                                                                         if ( range )
    761                                                                                         {
    762                                                                                                         sel.empty();
    763                                                                                                         range.select();
    764                                                                                         }
    765                                                                                 }
    766                                                                                 catch (e) {}
    767                                                                         }
    768 
    769750                                                                        editor.selectionChange();
    770751                                                                }
    771752                                                        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy