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

   1  /* Import plugin specific language pack */

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

   6   */
   7  function TinyMCE_zoom_getControlHTML(control_name) {
   8      if (!tinyMCE.isMSIE || tinyMCE.isMSIE5_0)
   9          return "";
  10  
  11      switch (control_name) {
  12          case "zoom":
  13              return '<select id="{$editor_id}_formatSelect" name="{$editor_id}_zoomSelect" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceZoom\',false,this.options[this.selectedIndex].value);" class="mceSelectList">\
  14                      <option value="100%">+ 100%</option>\
  15                      <option value="150%">+ 150%</option>\
  16                      <option value="200%">+ 200%</option>\
  17                      <option value="250%">+ 250%</option>\
  18                      </select>';
  19      }
  20  
  21      return "";
  22  }
  23  
  24  /**

  25   * Executes the mceZoom command.

  26   */
  27  function TinyMCE_zoom_execCommand(editor_id, element, command, user_interface, value) {
  28      // Handle commands

  29      switch (command) {
  30          case "mceZoom":
  31              tinyMCE.getInstanceById(editor_id).contentDocument.body.style.zoom = value;
  32              tinyMCE.getInstanceById(editor_id).contentDocument.body.style.mozZoom = value;
  33              return true;
  34      }
  35  
  36      // Pass to next handler in chain

  37      return false;
  38  }


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