[ Index ]
 

Code source de PHP NUKE 7.9

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

title

Body

[fermer]

/includes/tiny_mce/plugins/iespell/ -> editor_plugin_src.js (source)

   1  /* Import plugin specific language pack */

   2  tinyMCE.importPluginLanguagePack('iespell', 'albanian,arabic,brazilian,catala,chinese,czech,danish,dutch,english,euskara,finnish,french,galego,german,greek,hungarian,icelandic,indonesian,italian,macedonian,norwegian,polish,portuguese,romanian,russian,slovak,slovenian,spanish,swedish,thai,turkish,ukrainian,vietnamese');
   3  
   4  /**

   5   * Returns the HTML contents of the iespell control.

   6   */
   7  function TinyMCE_iespell_getControlHTML(control_name) {
   8      // Is it the iespell control and is the brower MSIE.

   9      if (control_name == "iespell" && tinyMCE.isMSIE)
  10          return '<img id="{$editor_id}_iespell" src="{$pluginurl}/images/iespell.gif" title="{$lang_iespell_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceIESpell\');">';
  11  
  12      return "";
  13  }
  14  
  15  /**

  16   * Executes the mceIESpell command.

  17   */
  18  function TinyMCE_iespell_execCommand(editor_id, element, command, user_interface, value) {
  19      // Handle ieSpellCommand

  20      if (command == "mceIESpell") {
  21          try {
  22              var ieSpell = new ActiveXObject("ieSpell.ieSpellExtension");
  23              ieSpell.CheckDocumentNode(tinyMCE.getInstanceById(editor_id).contentDocument.documentElement);
  24          } catch (e) {
  25              if (e.number == -2146827859) {
  26                  if (confirm(tinyMCE.getLang("lang_iespell_download", "", true)))
  27                      window.open('http://www.iespell.com/download.php', 'ieSpellDownload', '');
  28              } else
  29                  alert("Error Loading ieSpell: Exception " + e.number);
  30          }
  31  
  32          return true;
  33      }
  34  
  35      // Pass to next handler in chain

  36      return false;
  37  }


Généré le : Sun Apr 1 11:11:59 2007 par Balluche grâce à PHPXref 0.7