Ticket #5288: 5288.patch
File 5288.patch, 979 bytes (added by , 14 years ago) |
---|
-
_source/plugins/scayt/plugin.js
35 35 36 36 var createInstance = function() // Create new instance every time Document is created. 37 37 { 38 38 39 // Initialise Scayt instance. 39 40 var oParams = {}; 40 41 oParams.srcNodeRef = editor.document.getWindow().$.frameElement; // Get the iframe. … … 44 45 oParams.customDictionaryIds = editor.config.scayt_customDictionaryIds; 45 46 oParams.userDictionaryName = editor.config.scayt_userDictionaryName; 46 47 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 48 57 if ( CKEDITOR._scaytParams ) 49 58 { 50 59 for ( var k in CKEDITOR._scaytParams )