PluginProbe
Wp-Insert / 1.2
Wp-Insert v1.2
trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.3.0 1.3.1 1.3.3 1.4 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 2.0 All 63 releases
wp-insert / fckeditor / _samples / php / sample01.php

sample01.php in Wp-Insert 1.2, at fckeditor/_samples/php/sample01.php

115 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4
5 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
6
7 * Copyright (C) 2003-2009 Frederico Caldeira Knabben
8
9 *
10
11 * == BEGIN LICENSE ==
12
13 *
14
15 * Licensed under the terms of any of the following licenses at your
16
17 * choice:
18
19 *
20
21 * - GNU General Public License Version 2 or later (the "GPL")
22
23 * http://www.gnu.org/licenses/gpl.html
24
25 *
26
27 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
28
29 * http://www.gnu.org/licenses/lgpl.html
30
31 *
32
33 * - Mozilla Public License Version 1.1 or later (the "MPL")
34
35 * http://www.mozilla.org/MPL/MPL-1.1.html
36
37 *
38
39 * == END LICENSE ==
40
41 *
42
43 * Sample page.
44
45 */
46
47
48
49 include("../../fckeditor.php") ;
50
51 ?>
52
53 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
54
55 <html>
56
57 <head>
58
59 <title>FCKeditor - Sample</title>
60
61 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
62
63 <meta name="robots" content="noindex, nofollow">
64
65 <link href="../sample.css" rel="stylesheet" type="text/css" />
66
67 </head>
68
69 <body>
70
71 <h1>FCKeditor - PHP - Sample 1</h1>
72
73 This sample displays a normal HTML form with an FCKeditor with full features
74
75 enabled.
76
77 <hr>
78
79 <form action="sampleposteddata.php" method="post" target="_blank">
80
81 <?php
82
83 // Automatically calculates the editor base path based on the _samples directory.
84
85 // This is usefull only for these samples. A real application should use something like this:
86
87 // $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
88
89 $sBasePath = $_SERVER['PHP_SELF'] ;
90
91 $sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
92
93
94
95 $oFCKeditor = new FCKeditor('FCKeditor1') ;
96
97 $oFCKeditor->BasePath = $sBasePath ;
98
99 $oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
100
101 $oFCKeditor->Create() ;
102
103 ?>
104
105 <br>
106
107 <input type="submit" value="Submit">
108
109 </form>
110
111 </body>
112
113 </html>
114
115