Ticket #5701: 5701.patch

File 5701.patch, 901 bytes (added by WebSpellChecker.net, 14 years ago)
  • _source/plugins/scayt/plugin.js

     
    172172                                plugin.setControlId( editor, scayt_instance.id );
    173173                                scayt_instance.destroy( true );
    174174                        });
    175 
     175               
     176                // Refresh SCAYT on Enter key down in IE
     177                editor.document.on( 'keydown', function( event )
     178                        {
     179                                if ( plugin.isScaytEnabled( editor ) && CKEDITOR.env.ie && event.data.$.keyCode == 13) {
     180                                        window.setTimeout( function()
     181                                                {
     182                                                        var instance = plugin.getScayt( editor );
     183                                                        instance && instance.refresh();
     184                                                }, 10 );
     185                                }
     186                        });
     187               
    176188                // Listen to data manipulation to reflect scayt markup.
    177189                editor.on( 'afterSetData', function()
    178190                        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy