3
* FCKeditor - The text editor for internet
4
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
6
* Licensed under the terms of the GNU Lesser General Public License:
7
* http://www.opensource.org/licenses/lgpl-license.php
9
* For further information visit:
10
* http://www.fckeditor.net/
12
* "Support Open Source software. What about a donation today?"
14
* File Name: sample01.php
18
* Frederico Caldeira Knabben (fredck@fckeditor.net)
21
include("../../fckeditor.php") ;
23
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
26
<title>FCKeditor - Sample</title>
27
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
28
<meta name="robots" content="noindex, nofollow">
29
<link href="../sample.css" rel="stylesheet" type="text/css" />
32
<h1>FCKeditor - PHP - Sample 1</h1>
33
This sample displays a normal HTML form with an FCKeditor with full features
36
<form action="sampleposteddata.php" method="post" target="_blank">
38
// Automatically calculates the editor base path based on the _samples directory.
39
// This is usefull only for these samples. A real application should use something like this:
40
// $oFCKeditor->BasePath = '/FCKeditor/' ; // '/FCKeditor/' is the default value.
41
$sBasePath = $_SERVER['PHP_SELF'] ;
42
$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
44
$oFCKeditor = new FCKeditor('FCKeditor1') ;
45
$oFCKeditor->BasePath = $sBasePath ;
46
$oFCKeditor->Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
47
$oFCKeditor->Create() ;
50
<input type="submit" value="Submit">
b'\\ No newline at end of file'