JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.3
[ckeditor.git] / _source / plugins / wsc / plugin.js
index 9691da2..27bb988 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -10,6 +10,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 // Register a plugin named "wsc".\r
 CKEDITOR.plugins.add( 'wsc',\r
 {\r
+       requires : [ 'dialog' ],\r
        init : function( editor )\r
        {\r
                var commandName = 'checkspell';\r
@@ -17,7 +18,7 @@ CKEDITOR.plugins.add( 'wsc',
                var command = editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) );\r
 \r
                // SpellChecker doesn't work in Opera and with custom domain\r
-               command.modes = { wysiwyg : ( !CKEDITOR.env.opera && document.domain == window.location.hostname ) };\r
+               command.modes = { wysiwyg : ( !CKEDITOR.env.opera && !CKEDITOR.env.air && document.domain == window.location.hostname ) };\r
 \r
                editor.ui.addButton( 'SpellChecker',\r
                        {\r