[ Index ] |
|
Code source de FCKeditor 2.4 |
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: sample03.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( 'cmbToolbars' ) ; 41 oCombo.value = editorInstance.ToolbarSet.Name ; 42 oCombo.style.visibility = '' ; 43 } 44 45 function ChangeToolbar( toolbarName ) 46 { 47 window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ; 48 } 49 //--> 50 </script> 51 </head> 52 <body> 53 <h1>FCKeditor - Lasso - Sample 3</h1> 54 This sample shows how to change the editor toolbar. 55 <hr> 56 <table cellpadding="0" cellspacing="0" border="0"> 57 <tr> 58 <td> 59 Select the toolbar to load: 60 </td> 61 <td> 62 <select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden"> 63 <option value="Default" selected>Default</option> 64 <option value="Basic">Basic</option> 65 </select> 66 </td> 67 </tr> 68 </table> 69 <br> 70 <form action="sampleposteddata.lasso" method="post" target="_blank"> 71 [//lasso 72 include ('../../fckeditor.lasso'); 73 var('basepath') = response_filepath->split('_samples')->get(1); 74 75 var('myeditor') = fck_editor( 76 -instancename='FCKeditor1', 77 -basepath=$basepath, 78 -initialvalue='This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' 79 ); 80 81 if(action_param('Toolbar')); 82 $myeditor->toolbarset = action_param('Toolbar'); 83 /if; 84 85 $myeditor->create; 86 ] 87 <br> 88 <input type="submit" value="Submit"> 89 </form> 90 </body> 91 </html>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 15:28:05 2007 | par Balluche grâce à PHPXref 0.7 |