[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/include/fckeditor/editor/_source/commandclasses/ -> fckspellcheckcommand_ie.js (source)

   1  var FCKSpellCheckCommand = function()
   2  {
   3      this.Name = 'SpellCheck' ;
   4      this.IsEnabled = ( FCKConfig.SpellChecker == 'ieSpell' || FCKConfig.SpellChecker == 'SpellerPages' ) ;
   5  }
   6  
   7  FCKSpellCheckCommand.prototype.Execute = function()
   8  {
   9      switch ( FCKConfig.SpellChecker )
  10      {
  11          case 'ieSpell' :
  12              this._RunIeSpell() ;
  13              break ;
  14          
  15          case 'SpellerPages' :
  16              FCKDialog.OpenDialog( 'FCKDialog_SpellCheck', 'Spell Check', 'dialog/fck_spellerpages.html', 440, 480 ) ;
  17              break ;
  18      }
  19  }
  20  
  21  FCKSpellCheckCommand.prototype._RunIeSpell = function()
  22  {
  23      try
  24      {
  25          var oIeSpell = new ActiveXObject( "ieSpell.ieSpellExtension" ) ;
  26          oIeSpell.CheckAllLinkedDocuments( FCK.EditorDocument ) ;
  27      }
  28      catch( e )
  29      {
  30          if( e.number == -2146827859 )
  31          {
  32              if ( confirm( FCKLang.IeSpellDownload ) )
  33                  window.open( FCKConfig.IeSpellDownloadUrl , 'IeSpellDownload' ) ;
  34          }
  35          else
  36              alert( 'Error Loading ieSpell: ' + e.message + ' (' + e.number + ')' ) ;
  37      }
  38  }
  39  
  40  FCKSpellCheckCommand.prototype.GetState = function()
  41  {
  42      return this.IsEnabled ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ;
  43  }


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7