Ticket #5674: 5674.patch
File 5674.patch, 1.3 KB (added by , 13 years ago) |
---|
-
_source/plugins/scayt/plugin.js
155 155 // Listen to data manipulation to reflect scayt markup. 156 156 editor.on( 'afterSetData', function() 157 157 { 158 if ( plugin.isScaytEnabled( editor ) ) { 159 window.setTimeout( function(){ plugin.getScayt( editor ).refresh(); }, 10 ); 160 } 158 editor.fire('scaytRefresh'); 161 159 }); 162 160 163 161 // Reload spell-checking for current word after insertion completed. … … 173 171 174 172 // Swallow any SCAYT engine errors. 175 173 window.setTimeout( function(){ scayt_instance.refresh(); }, 10 ); 174 176 175 } 177 176 }, this, null, 50 ); 178 177 … … 623 622 }; 624 623 625 624 editor.on( 'showScaytState', showInitialState ); 625 626 // Register SCAYT refresh event 627 editor.on( 'scaytRefresh', function(ev) 628 { 629 630 CKEDITOR.tools.setTimeout(function() 631 { 632 var scayt_instance = plugin.getScayt(editor); 633 if ( plugin.isScaytEnabled(editor) && scayt_instance ) 634 { 635 scayt_instance.refresh(); 636 console.info('refresh called') 637 } 638 },0); 639 }); 626 640 627 641 if ( CKEDITOR.env.opera ) 628 642 {