Revision 3019,
1.0 KB
checked in by amuller, 14 years ago
(diff) |
Ticket #1135 - Corrigindo CSS e adicionando filemanager
|
Line | |
---|
1 | /*
|
---|
2 | Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
|
---|
3 | For licensing, see LICENSE.html or http://ckeditor.com/license
|
---|
4 | */
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * @file Spell checker
|
---|
8 | */
|
---|
9 |
|
---|
10 | // Register a plugin named "wsc".
|
---|
11 | CKEDITOR.plugins.add( 'wsc',
|
---|
12 | {
|
---|
13 | init : function( editor )
|
---|
14 | {
|
---|
15 | var commandName = 'checkspell';
|
---|
16 |
|
---|
17 | var command = editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) );
|
---|
18 |
|
---|
19 | // SpellChecker doesn't work in Opera and with custom domain
|
---|
20 | command.modes = { wysiwyg : ( !CKEDITOR.env.opera && document.domain == window.location.hostname ) };
|
---|
21 |
|
---|
22 | editor.ui.addButton( 'SpellChecker',
|
---|
23 | {
|
---|
24 | label : editor.lang.spellCheck.toolbar,
|
---|
25 | command : commandName
|
---|
26 | });
|
---|
27 | CKEDITOR.dialog.add( commandName, this.path + 'dialogs/wsc.js' );
|
---|
28 | }
|
---|
29 | });
|
---|
30 |
|
---|
31 | CKEDITOR.config.wsc_customerId = CKEDITOR.config.wsc_customerId || '1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk' ;
|
---|
32 | CKEDITOR.config.wsc_customLoaderScript = CKEDITOR.config.wsc_customLoaderScript || null;
|
---|
Note: See
TracBrowser
for help on using the repository browser.