X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fwsc%2Fplugin.js;h=27bb988a60a823662aebf6d4bf422cea221da5b1;hb=2f22c0c38f17e75be5541089076885442aaa2377;hp=9691da267318f96f86bccc323e89eef46a85aeee;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/plugins/wsc/plugin.js b/_source/plugins/wsc/plugin.js index 9691da2..27bb988 100644 --- a/_source/plugins/wsc/plugin.js +++ b/_source/plugins/wsc/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -10,6 +10,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license // Register a plugin named "wsc". CKEDITOR.plugins.add( 'wsc', { + requires : [ 'dialog' ], init : function( editor ) { var commandName = 'checkspell'; @@ -17,7 +18,7 @@ CKEDITOR.plugins.add( 'wsc', var command = editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) ); // SpellChecker doesn't work in Opera and with custom domain - command.modes = { wysiwyg : ( !CKEDITOR.env.opera && document.domain == window.location.hostname ) }; + command.modes = { wysiwyg : ( !CKEDITOR.env.opera && !CKEDITOR.env.air && document.domain == window.location.hostname ) }; editor.ui.addButton( 'SpellChecker', {