Ticket #5573: 5573_2.patch

File 5573_2.patch, 1.1 KB (added by WebSpellChecker.net, 14 years ago)
  • _source/plugins/scayt/plugin.js

     
    171171                                        if ( CKEDITOR.env.ie )
    172172                                                editor.getSelection().unlock( true );
    173173
    174                                         // Swallow any SCAYT engine errors.
    175                                         window.setTimeout( function(){ scayt_instance.refresh(); }, 10 );
     174                                        // Return focus to the editor (5573 ticket)
     175                                        // Refresh SCAYT markup
     176                                        window.setTimeout( function(){
     177                                                scayt_instance.focus();
     178                                                scayt_instance.refresh();
     179                                        },10);
    176180                                }
    177181                        }, this, null, 50 );
    178182
     
    186190                                        if ( CKEDITOR.env.ie )
    187191                                                editor.getSelection().unlock( true );
    188192
    189                                         // Swallow any SCAYT engine errors.
    190                                         window.setTimeout( function(){ scayt_instance.refresh(); },10 );
     193                                        // Return focus to the editor (5573 ticket)
     194                                        // Refresh SCAYT markup
     195                                        window.setTimeout( function(){
     196                                                scayt_instance.focus();
     197                                                scayt_instance.refresh();
     198                                        },10);
    191199                                }
    192200                        }, this, null, 50 );
    193201
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy