2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
\r
3 For licensing, see LICENSE.html or http://ckeditor.com/license
\r
7 * @file Spell checker
\r
10 // Register a plugin named "wsc".
\r
11 CKEDITOR.plugins.add( 'wsc',
\r
13 requires : [ 'dialog' ],
\r
14 init : function( editor )
\r
16 var commandName = 'checkspell';
\r
18 var command = editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) );
\r
20 // SpellChecker doesn't work in Opera and with custom domain
\r
21 command.modes = { wysiwyg : ( !CKEDITOR.env.opera && !CKEDITOR.env.air && document.domain == window.location.hostname ) };
\r
23 editor.ui.addButton( 'SpellChecker',
\r
25 label : editor.lang.spellCheck.toolbar,
\r
26 command : commandName
\r
28 CKEDITOR.dialog.add( commandName, this.path + 'dialogs/wsc.js' );
\r
32 CKEDITOR.config.wsc_customerId = CKEDITOR.config.wsc_customerId || '1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk' ;
\r
33 CKEDITOR.config.wsc_customLoaderScript = CKEDITOR.config.wsc_customLoaderScript || null;
\r