Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/cfm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16237/phpslash-dev/public_html/scripts/fckeditor/_samples/cfm
Added Files:
sample01.cfm sample02_mx.cfm
Log Message:
added fckeditor to comment submittal.
--- NEW FILE: sample01.cfm ---
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2004 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* File Name: sample01.cfm
* Sample page.
*
* Version: 2.0 Beta 1
* Modified: 2004-05-31 23:18:38
*
* File Authors:
* Hendrik Kramer (hk...@lw...)
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>FCKeditor - Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
<link href="../sample.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>FCKeditor - ColdFusion - Sample 1</h1>
This sample displays a normal HTML form with a FCKeditor with full features enabled; invoked by a ColdFusion Custom Tag / Module.<br>
ColdFusion is a registered trademark and product of <a href="http://www.macromedia.com/software/coldfusion/" target="_blank">Macromedia, Inc</a>.
<hr>
<form method="POST" action="<cfoutput>#cgi.script_name#</cfoutput>">
<cfmodule
template="../../fckeditor.cfm"
basePath="/fckeditor/"
instanceName="textEditor"
value='This is some sample text. You are using <a href="http://fckeditor.net/" target="_blank">FCKeditor</a>.'
width="100%"
height="200"
>
<br />
<input type="submit" value="Submit">
<br />
</form>
<cfif isDefined( 'FORM.fieldnames' )>
<cfoutput>
<style>
<!--
td, th { font: 11px Verdana, Arial, Helv, Helvetica, "sans-serif"; }
-->
</style>
<table border="1" cellspacing="0" cellpadding="2" bordercolor="darkblue" bordercolordark="darkblue" bordercolorlight="darkblue">
<tr>
<th colspan="2" bgcolor="darkblue"><font color="white"><strong>Dump of FORM Variables</strong></font></th>
</tr>
<tr>
<td bgcolor="lightskyblue">FieldNames</td>
<td>#FORM.fieldNames#</td>
</tr>
<cfloop list="#FORM.fieldnames#" index="key">
<tr>
<td valign="top" bgcolor="lightskyblue">#key#</td>
<td>#HTMLEditFormat(evaluate("FORM.#key#"))#</td>
</tr>
</cfloop>
</table>
</cfoutput>
</cfif>
</body>
</html>
--- NEW FILE: sample02_mx.cfm ---
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2004 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* File Name: sample02_mx.cfm
* Sample page.
*
* Version: 2.0 Beta 1
* Modified: 2004-05-31 23:18:45
*
* File Authors:
* Hendrik Kramer (hk...@lw...)
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>FCKeditor - Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
<link href="../sample.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>FCKEditor - ColdFusion Component (CFC) - Sample 2</h1>
This sample displays a normal HTML form with a FCKeditor with full features enabled; invoked by a ColdFusion Component.<br>
ColdFusion is a registered trademark and product of <a href="http://www.macromedia.com/software/coldfusion/" target="_blank">Macromedia, Inc</a>.
<hr>
<cflock scope="SERVER" type="READONLY" timeout="10">
<cfset prodVersion = listFirst( server.coldFusion.productVersion )>
</cflock>
<cfif prodVersion LT 6>
<cfoutput><br><em style="color: red;">This sample work only with a ColdFusion MX server and higher, because it uses some advantages of this version.<br>Please try our other <a href="sample01.cfm">ColdFusion Sample Integration</a>.</em></cfoutput>
<cfabort>
</cfif>
<form method="POST" action="<cfoutput>#cgi.script_name#</cfoutput>">
<cfscript>
fckEditor = createObject("component", "/fckeditor/fckeditor");
fckEditor.instanceName = "textEditor";
fckEditor.value = 'This is some sample text. You are using <a href="http://fckeditor.net/" target="_blank">FCKeditor</a>.';
fckEditor.basePath = "/fckeditor/";
fckEditor.width = "100%";
fckEditor.height = 200;
fckEditor.create(); // create the editor.
</cfscript>
<br />
<input type="submit" value="Submit">
<br />
</form>
<cfdump var="#FORM#" label="Dump of FORM Variables">
</body>
</html>
|