JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.3.2
[ckeditor.git] / _source / plugins / scayt / plugin.js
index ba42fa9..671815b 100644 (file)
@@ -382,7 +382,7 @@ CKEDITOR.plugins.scayt =
                        var protocol = document.location.protocol;\r
                        // Default to 'http' for unknown.\r
                        protocol = protocol.search( /https?:/) != -1? protocol : 'http:';\r
-                       var baseUrl  = 'svc.spellchecker.net/spellcheck31/lf/scayt24/loader__base.js';\r
+                       var baseUrl  = 'svc.spellchecker.net/scayt25/loader__base.js';\r
 \r
                        var scaytUrl  =  editor.config.scayt_srcUrl || ( protocol + '//' + baseUrl );\r
                        var scaytConfigBaseUrl =  plugin.parseUrl( scaytUrl ).path +  '/';\r
@@ -453,9 +453,6 @@ CKEDITOR.plugins.scayt =
 \r
                exec: function( editor )\r
                {\r
-                       var autoStartup = editor.config.scayt_autoStartup;\r
-                       autoStartup = ( autoStartup == undefined ) || autoStartup;\r
-\r
                        if ( plugin.isScaytReady( editor ) )\r
                        {\r
                                var isEnabled = plugin.isScaytEnabled( editor );\r
@@ -472,7 +469,7 @@ CKEDITOR.plugins.scayt =
                                scayt_control.focus( );\r
                                scayt_control.setDisabled( isEnabled );\r
                        }\r
-                       else if ( !autoStartup && plugin.engineLoaded >= 0 )    // Load first time\r
+                       else if ( !editor.config.scayt_autoStartup && plugin.engineLoaded >= 0 )        // Load first time\r
                        {\r
                                this.setState( CKEDITOR.TRISTATE_DISABLED );\r
                                plugin.loadEngine( editor );\r
@@ -778,8 +775,7 @@ CKEDITOR.plugins.scayt =
                        }\r
 \r
                        // Start plugin\r
-                       var autoStartup = editor.config.scayt_autoStartup;\r
-                       if ( ( autoStartup == undefined ) || autoStartup )\r
+                       if ( editor.config.scayt_autoStartup )\r
                        {\r
                                editor.on( 'instanceReady', function()\r
                                {\r
@@ -811,9 +807,9 @@ CKEDITOR.plugins.scayt =
  * If enabled (true), turns on SCAYT automatically after loading the editor.\r
  * @name CKEDITOR.config.scayt_autoStartup\r
  * @type Boolean\r
- * @default true\r
+ * @default false\r
  * @example\r
- * config.scayt_autoStartup = false;\r
+ * config.scayt_autoStartup = true;\r
  */\r
 \r
 /**\r