[ Index ]
 

Code source de eGroupWare 1.2.106-2

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

title

Body

[fermer]

/phpgwapi/js/tinymce/jscripts/tiny_mce/plugins/emotions/ -> editor_plugin_src.js (source)

   1  /* Import plugin specific language pack */
   2  tinyMCE.importPluginLanguagePack('emotions', 'en,sv,zh_cn,cs,fa,fr_ca,fr,de,pl');
   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\');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 Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7