[ 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/emotions/ -> editor_plugin_src.js (source)

   1  /* Import plugin specific language pack */

   2  tinyMCE.importPluginLanguagePack('emotions', '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 emotions control.

   6   */
   7  function TinyMCE_emotions_getControlHTML(control_name) {
   8      switch (control_name) {
   9          case "emotions":
  10              return '<img id="{$editor_id}_emotions" src="{$pluginurl}/images/emotions.gif" title="{$lang_emotions_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}\',\'mceEmotion\');">';
  11      }
  12  
  13      return "";
  14  }
  15  
  16  /**

  17   * Executes the mceEmotion command.

  18   */
  19  function TinyMCE_emotions_execCommand(editor_id, element, command, user_interface, value) {
  20      // Handle commands

  21      switch (command) {
  22          case "mceEmotion":
  23              var template = new Array();
  24  
  25              template['file'] = '../../plugins/emotions/emotions.htm'; // Relative to theme

  26              template['width'] = 150;
  27              template['height'] = 180;
  28  
  29              tinyMCE.openWindow(template, {editor_id : editor_id});
  30  
  31              return true;
  32      }
  33  
  34      // Pass to next handler in chain

  35      return false;
  36  }


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