Ticket #5288: 5288.patch

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

     
    3535
    3636                var createInstance = function() // Create new instance every time Document is created.
    3737                {
     38                       
    3839                        // Initialise Scayt instance.
    3940                        var oParams = {};
    4041                        oParams.srcNodeRef = editor.document.getWindow().$.frameElement;                // Get the iframe.
     
    4445                        oParams.customDictionaryIds = editor.config.scayt_customDictionaryIds;
    4546                        oParams.userDictionaryName = editor.config.scayt_userDictionaryName;
    4647                        oParams.sLang = editor.config.scayt_sLang || "en_US";
    47 
     48                       
     49                        oParams.onBeforeChange = function(){
     50                                if( !editor.checkDirty() )
     51                                        setTimeout( function(){
     52                                                editor.resetDirty();
     53                                        });
     54                        };
     55                       
     56                       
    4857                        if ( CKEDITOR._scaytParams )
    4958                        {
    5059                                for ( var k in CKEDITOR._scaytParams )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy