[ Index ] |
|
Code source de FCKeditor 2.4 |
1 <?php 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: sample01.php 23 * Sample page. 24 * 25 * File Authors: 26 * Frederico Caldeira Knabben (www.fckeditor.net) 27 */ 28 29 include ("../../fckeditor.php") ; 30 ?> 31 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 32 <html> 33 <head> 34 <title>FCKeditor - Sample</title> 35 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 36 <meta name="robots" content="noindex, nofollow"> 37 <link href="../sample.css" rel="stylesheet" type="text/css" /> 38 </head> 39 <body> 40 <h1>FCKeditor - PHP - Sample 1</h1> 41 This sample displays a normal HTML form with an FCKeditor with full features 42 enabled. 43 <hr> 44 <form action="sampleposteddata.php" method="post" target="_blank"> 45 <?php 46 // Automatically calculates the editor base path based on the _samples directory. 47 // This is usefull only for these samples. A real application should use something like this: 48 // $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 49 $sBasePath = $_SERVER['PHP_SELF'] ; 50 $sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ; 51 52 $oFCKeditor = new FCKeditor('FCKeditor1') ; 53 $oFCKeditor->BasePath = $sBasePath ; 54 $oFCKeditor->Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ; 55 $oFCKeditor->Create() ; 56 ?> 57 <br> 58 <input type="submit" value="Submit"> 59 </form> 60 </body> 61 </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 |