[ 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/paste/ -> pastetext.htm (source)

   1  <html>
   2  <head>
   3  <title>{$lang_paste_text_desc}</title>
   4  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
   5  <meta http-equiv="Pragma" content="no-cache" />
   6  <meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate" />
   7  <meta http-equiv="Expires" content="Fri, Oct 24 1976 00:00:00 GMT" />
   8  <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
   9  <script type="text/javascript">
  10  <!--
  11  // Ryan Demmer 12/05/2005 (ryandemmer@gmail.com)
  12  // Pretty much a hack of the HTML Source Editor
  13  
  14  // Updated by speednet 24 May 2005
  15  
  16  tinyMCE.setWindowArg('mce_windowresize', false);
  17  
  18  function saveContent() {
  19      if (window.opener) {
  20          if (document.forms[0].htmlSource.value == ''){
  21              window.close();
  22              return false;
  23          } else
  24              window.opener.TinyMCE_paste__insertText(document.forms[0].htmlSource.value, document.forms[0].linebreaks.checked);
  25  
  26          window.close();
  27      }
  28  }
  29  
  30  function onLoadInit() {
  31      resizeInputs();
  32  }
  33  
  34  var wHeight=0, wWidth=0, owHeight=0, owWidth=0;
  35  
  36  function resizeInputs() {
  37      if (!tinyMCE.isMSIE) {
  38          wHeight = self.innerHeight-80;
  39          wWidth = self.innerWidth-25;
  40      }
  41      else {
  42          wHeight = document.body.clientHeight-80;
  43          wWidth = document.body.clientWidth-25;
  44      }
  45  
  46      document.forms[0].htmlSource.style.height = Math.abs(wHeight) + 'px';
  47      document.forms[0].htmlSource.style.width  = Math.abs(wWidth) + 'px';
  48  }
  49  
  50  window.focus();
  51  //--></script>
  52  </head>
  53  <body scroll="no" onload="onLoadInit();" onresize="resizeInputs();">
  54  <form name="source" onsubmit="saveContent();">
  55      <table border="0" cellpadding="0" cellspacing="2" align="center">
  56          <tr>
  57              <td class="title">{$lang_paste_text_desc}</td>
  58              <td align="right" nowrap="nowrap">
  59                  <input type="checkbox" name="linebreaks" id="linebreaks" class="wordWrapCode" checked="checked" /><label for="linebreaks">{$lang_paste_text_linebreaks}</label>
  60              </td> 
  61          </tr>
  62          <tr>
  63              <td colspan="2">{$lang_paste_text_title}</td>
  64          </tr>
  65          <tr>
  66              <td colspan="2" align="center">
  67                  <textarea name="htmlSource" id="htmlSource" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,mono; font-size: 12px;" dir="ltr" wrap="soft"></textarea>
  68              </td>
  69          </tr>
  70          <tr>
  71              <td width="50%" align="left"><input type="button" id="insert" name="insert" value="{$lang_insert}" onclick="saveContent();" /></td>
  72              <td width="50%" align="right"><input type="button" value="{$lang_cancel}" onclick="window.close();" /></td>
  73          </tr>
  74      </table>
  75  </form>
  76  </body> 
  77  </html>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7