/*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
// Register a plugin named "wsc".\r
CKEDITOR.plugins.add( 'wsc',\r
{\r
+ requires : [ 'dialog' ],\r
init : function( editor )\r
{\r
var commandName = 'checkspell';\r
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