[ Index ]
 

Code source de FCKeditor 2.4

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

title

Body

[fermer]

/_samples/lasso/ -> sample04.lasso (source)

   1  [//lasso
   2  /*
   3   * FCKeditor - The text editor for Internet - http://www.fckeditor.net
   4   * Copyright (C) 2003-2007 Frederico Caldeira Knabben
   5   * 
   6   * == BEGIN LICENSE ==
   7   * 
   8   * Licensed under the terms of any of the following licenses at your
   9   * choice:
  10   * 
  11   *  - GNU General Public License Version 2 or later (the "GPL")
  12   *    http://www.gnu.org/licenses/gpl.html
  13   * 
  14   *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
  15   *    http://www.gnu.org/licenses/lgpl.html
  16   * 
  17   *  - Mozilla Public License Version 1.1 or later (the "MPL")
  18   *    http://www.mozilla.org/MPL/MPL-1.1.html
  19   * 
  20   * == END LICENSE ==
  21   * 
  22   * File Name: sample04.lasso
  23   *     Sample page.
  24   * 
  25   * File Authors:
  26   *         Jason Huck (jason.huck@corefive.com)
  27   */
  28  ]
  29  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  30  <html>
  31      <head>
  32          <title>FCKeditor - Sample</title>
  33          <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  34          <meta name="robots" content="noindex, nofollow">
  35          <link href="../sample.css" rel="stylesheet" type="text/css" />
  36          <script type="text/javascript">
  37          <!--
  38  function FCKeditor_OnComplete( editorInstance )
  39  {
  40      var oCombo = document.getElementById( 'cmbSkins' ) ;
  41      
  42      // Get the active skin.
  43      var sSkin = editorInstance.Config['SkinPath'] ;
  44      sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
  45      
  46      oCombo.value = sSkin ;
  47      oCombo.style.visibility = '' ;
  48  }
  49  
  50  function ChangeSkin( skinName )
  51  {
  52      window.location.href = window.location.pathname + "?Skin=" + skinName ;
  53  }
  54          //-->
  55          </script>
  56      </head>
  57      <body>
  58          <h1>FCKeditor - Lasso - Sample 4</h1>
  59          This sample shows how to change the editor skin.
  60          <hr>
  61          <table cellpadding="0" cellspacing="0" border="0">
  62              <tr>
  63                  <td>
  64                      Select the skin to load:&nbsp;
  65                  </td>
  66                  <td>
  67                      <select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
  68                          <option value="default" selected>Default</option>
  69                          <option value="office2003">Office 2003</option>
  70                          <option value="silver">Silver</option>
  71                      </select>
  72                  </td>
  73              </tr>
  74          </table>
  75          <br>
  76          <form action="sampleposteddata.lasso" method="post" target="_blank">
  77  [//lasso
  78      include ('../../fckeditor.lasso');
  79      var('basepath') = response_filepath->split('_samples')->get(1);
  80  
  81      var('myeditor') = fck_editor(
  82          -instancename='FCKeditor1',
  83          -basepath=$basepath,
  84          -initialvalue='This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.'
  85      );
  86      
  87      if(action_param('Skin'));
  88          $myeditor->config = array('SkinPath' = $basepath + 'editor/skins/' + action_param('Skin') + '/');
  89      /if;
  90      
  91      $myeditor->create;
  92  ]
  93              <br>
  94              <input type="submit" value="Submit">
  95          </form>
  96      </body>
  97  </html>


Généré le : Sun Feb 25 15:28:05 2007 par Balluche grâce à PHPXref 0.7