Ticket #4125: 4125_2.patch

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

     
    103103
    104104                editor.on( 'beforeCommandExec', function( ev )          // Disable SCAYT before Source command execution.
    105105                        {
     106
     107                                if ( ev.data.name == 'removeFormat' && editor.mode == 'wysiwyg' )
     108                                {
     109                                       
     110                                        if (plugin.isScaytEnabled(editor))
     111                                                window.setTimeout(function(){plugin.getScayt(editor).refresh()},10);
     112                                       
     113                                }
    106114                                if ( (ev.data.name == 'source' ||  ev.data.name == 'newpage') && editor.mode == 'wysiwyg' )
    107115                                {
    108116                                        var scayt_instanse = plugin.getScayt( editor );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy