Ticket #6863: 6863.patch

File 6863.patch, 1.1 KB (added by WebSpellChecker.net, 13 years ago)
  • _source/plugins/wsc/dialogs/wsc.js

     
    127127                buttons : [ CKEDITOR.dialog.cancelButton ],
    128128                onShow : function()
    129129                {
     130                        // Destroy SCAYT instance on WSC window show (#6863)
     131                        var scayt_plugin = CKEDITOR.plugins.scayt;
     132                        if (scayt_plugin) {
     133                                var scayt_instance = scayt_plugin.getScayt( editor );
     134                                if ( scayt_instance )
     135                                {
     136                                        scayt_plugin.setPaused( editor, !scayt_instance.disabled );
     137                                        // store a control id for restore a specific scayt control settings
     138                                        scayt_plugin.setControlId( editor, scayt_instance.id );
     139                                        scayt_instance.destroy( true );
     140                                        delete scayt_plugin.instances[ editor.name ];
     141                                }
     142                        }
     143                       
    130144                        var contentArea = this.getContentElement( 'general', 'content' ).getElement();
    131145                        contentArea.setHtml( pasteArea );
    132146                        contentArea.getChild( 2 ).setStyle( 'height', this._.contentSize.height + 'px' );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy