Last change
on this file since 345 was 239, checked in by luc, 9 years ago |
Admin: correzione visulaizzazione immissione dati spoglio per Chrome e Safari - Aggiornamento dell'editor da FCKeditor a CKeditor , accessibili anche a Chrome e Safari.
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | /*
|
---|
2 | Copyright (c) 2003-2011, 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 | requires : [ 'dialog' ],
|
---|
14 | init : function( editor )
|
---|
15 | {
|
---|
16 | var commandName = 'checkspell';
|
---|
17 |
|
---|
18 | var command = editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) );
|
---|
19 |
|
---|
20 | // SpellChecker doesn't work in Opera and with custom domain
|
---|
21 | command.modes = { wysiwyg : ( !CKEDITOR.env.opera && !CKEDITOR.env.air && document.domain == window.location.hostname ) };
|
---|
22 |
|
---|
23 | editor.ui.addButton( 'SpellChecker',
|
---|
24 | {
|
---|
25 | label : editor.lang.spellCheck.toolbar,
|
---|
26 | command : commandName
|
---|
27 | });
|
---|
28 | CKEDITOR.dialog.add( commandName, this.path + 'dialogs/wsc.js' );
|
---|
29 | }
|
---|
30 | });
|
---|
31 |
|
---|
32 | CKEDITOR.config.wsc_customerId = CKEDITOR.config.wsc_customerId || '1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk' ;
|
---|
33 | CKEDITOR.config.wsc_customLoaderScript = CKEDITOR.config.wsc_customLoaderScript || null;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.