1 | <cfsetting enablecfoutputonly="true" showdebugoutput="false">
|
---|
2 | <!---
|
---|
3 | * FCKeditor - The text editor for internet
|
---|
4 | * Copyright (C) 2003-2006 Frederico Caldeira Knabben
|
---|
5 | *
|
---|
6 | * Licensed under the terms of the GNU Lesser General Public License:
|
---|
7 | * http://www.opensource.org/licenses/lgpl-license.php
|
---|
8 | *
|
---|
9 | * For further information visit:
|
---|
10 | * http://www.fckeditor.net/
|
---|
11 | *
|
---|
12 | * "Support Open Source software. What about a donation today?"
|
---|
13 | *
|
---|
14 | * File Name: sample01.cfm
|
---|
15 | * Sample page for ColdFusion.
|
---|
16 | *
|
---|
17 | * File Authors:
|
---|
18 | * Hendrik Kramer (hk@lwd.de)
|
---|
19 | * Mark Woods (mark@thickpaddy.com)
|
---|
20 | * Wim Lemmens (didgiman@gmail.com)
|
---|
21 | --->
|
---|
22 |
|
---|
23 | <cfoutput>
|
---|
24 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
---|
25 | <html>
|
---|
26 | <head>
|
---|
27 | <title>FCKeditor - Sample</title>
|
---|
28 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
---|
29 | <meta name="robots" content="noindex, nofollow">
|
---|
30 | <link href="../sample.css" rel="stylesheet" type="text/css" />
|
---|
31 | </head>
|
---|
32 |
|
---|
33 | <body>
|
---|
34 |
|
---|
35 | <h1>FCKeditor - ColdFusion - Sample 1</h1>
|
---|
36 |
|
---|
37 | This sample displays a normal HTML form with a FCKeditor with full features enabled; invoked by a ColdFusion Custom Tag / Module.
|
---|
38 | <hr>
|
---|
39 | <form method="POST" action="#cgi.script_name#">
|
---|
40 | </cfoutput>
|
---|
41 |
|
---|
42 | <cfmodule
|
---|
43 | template="../../fckeditor.cfm"
|
---|
44 | basePath="#Left(cgi.script_name, FindNoCase('_samples', cgi.script_name)-1)#"
|
---|
45 | instanceName="myEditor"
|
---|
46 | value='This is some sample text. You are using <a href="http://fckeditor.net/" target="_blank">FCKeditor</a>.'
|
---|
47 | width="100%"
|
---|
48 | height="200"
|
---|
49 | >
|
---|
50 | <cfoutput>
|
---|
51 | <br />
|
---|
52 | <input type="submit" value="Submit">
|
---|
53 | <br />
|
---|
54 | </form>
|
---|
55 | </cfoutput>
|
---|
56 |
|
---|
57 | <cfif isDefined( 'FORM.fieldnames' )>
|
---|
58 | <cfoutput>
|
---|
59 | <style>
|
---|
60 | <!--
|
---|
61 | td, th { font: 11px Verdana, Arial, Helv, Helvetica, sans-serif; }
|
---|
62 | -->
|
---|
63 | </style>
|
---|
64 | <table border="1" cellspacing="0" cellpadding="2" bordercolor="darkblue" bordercolordark="darkblue" bordercolorlight="darkblue">
|
---|
65 | <tr>
|
---|
66 | <th colspan="2" bgcolor="darkblue"><font color="white"><strong>Dump of FORM Variables</strong></font></th>
|
---|
67 | </tr>
|
---|
68 | <tr>
|
---|
69 | <td bgcolor="lightskyblue">FieldNames</td>
|
---|
70 | <td>#FORM.fieldNames#</td>
|
---|
71 | </tr>
|
---|
72 | <cfloop list="#FORM.fieldnames#" index="key">
|
---|
73 | <tr>
|
---|
74 | <td valign="top" bgcolor="lightskyblue">#key#</td>
|
---|
75 | <td>#HTMLEditFormat(evaluate("FORM.#key#"))#</td>
|
---|
76 | </tr>
|
---|
77 | </cfloop>
|
---|
78 | </table>
|
---|
79 | </cfoutput>
|
---|
80 | </cfif>
|
---|
81 |
|
---|
82 | </body>
|
---|
83 | </html>
|
---|
84 | <cfsetting enablecfoutputonly="false"> |
---|