1<cfsetting enablecfoutputonly="true" showdebugoutput="false">
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 * Sample page for ColdFusion.
23--->
24
25<cfoutput>
26<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
27<html>
28<head>
29	<title>FCKeditor - Sample</title>
30	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
31	<meta name="robots" content="noindex, nofollow">
32	<link href="../sample.css" rel="stylesheet" type="text/css" />
33</head>
34
35<body>
36
37<h1>FCKeditor - ColdFusion - Sample 1</h1>
38
39This sample displays a normal HTML form with a FCKeditor with full features enabled; invoked by a ColdFusion Custom Tag / Module.
40<hr>
41<form method="POST" action="#cgi.script_name#">
42</cfoutput>
43
44<cfmodule
45	template="../../fckeditor.cfm"
46	basePath="#Left(cgi.script_name, FindNoCase('_samples', cgi.script_name)-1)#"
47	instanceName="myEditor"
48	value='This is some sample text. You are using <a href="http://fckeditor.net/" target="_blank">FCKeditor</a>.'
49	width="100%"
50	height="200"
51>
52<cfoutput>
53<br />
54<input type="submit" value="Submit">
55<br />
56</form>
57</cfoutput>
58
59<cfif isDefined( 'FORM.fieldnames' )>
60	<cfoutput>
61	<hr />
62	<style>
63	<!--
64		td, th { font: 11px Verdana, Arial, Helv, Helvetica, sans-serif; }
65	-->
66	</style>
67	<table border="1" cellspacing="0" cellpadding="2" bordercolor="darkblue" bordercolordark="darkblue" bordercolorlight="darkblue">
68	<tr>
69		<th colspan="2" bgcolor="darkblue"><font color="white"><strong>Dump of FORM Variables</strong></font></th>
70	</tr>
71	<tr>
72		<td bgcolor="lightskyblue">FieldNames</td>
73		<td>#FORM.fieldNames#</td>
74	</tr>
75	<cfloop list="#FORM.fieldnames#" index="key">
76	<tr>
77		<td valign="top" bgcolor="lightskyblue">#key#</td>
78		<td>#HTMLEditFormat(evaluate("FORM.#key#"))#</td>
79	</tr>
80	</cfloop>
81	</table>
82	</cfoutput>
83</cfif>
84
85</body>
86</html>
87<cfsetting enablecfoutputonly="false">