3
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
8
* Licensed under the terms of any of the following licenses at your
11
* - GNU General Public License Version 2 or later (the "GPL")
12
* http://www.gnu.org/licenses/gpl.html
14
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15
* http://www.gnu.org/licenses/lgpl.html
17
* - Mozilla Public License Version 1.1 or later (the "MPL")
18
* http://www.mozilla.org/MPL/MPL-1.1.html
25
include("../../fckeditor.php") ;
27
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
30
<title>FCKeditor - Sample</title>
31
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
32
<meta name="robots" content="noindex, nofollow">
33
<link href="../sample.css" rel="stylesheet" type="text/css" />
36
<h1>FCKeditor - PHP - Sample 1</h1>
37
This sample displays a normal HTML form with an FCKeditor with full features
40
<form action="sampleposteddata.php" method="post" target="_blank">
42
// Automatically calculates the editor base path based on the _samples directory.
43
// This is usefull only for these samples. A real application should use something like this:
44
// $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
45
$sBasePath = $_SERVER['PHP_SELF'] ;
46
$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
48
$oFCKeditor = new FCKeditor('FCKeditor1') ;
49
$oFCKeditor->BasePath = $sBasePath ;
50
$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
51
$oFCKeditor->Create() ;
54
<input type="submit" value="Submit">