first commit

This commit is contained in:
schwaral
2022-11-25 07:07:16 +01:00
commit c086b964da
3188 changed files with 1063828 additions and 0 deletions

View File

@ -0,0 +1,84 @@
<cfsetting enablecfoutputonly="true" showdebugoutput="false">
<!---
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 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/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: sample01.cfm
* Sample page for ColdFusion.
*
* File Authors:
* Hendrik Kramer (hk@lwd.de)
* Mark Woods (mark@thickpaddy.com)
* Wim Lemmens (didgiman@gmail.com)
--->
<cfoutput>
<!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.
<hr>
<form method="POST" action="#cgi.script_name#">
</cfoutput>
<cfmodule
template="../../fckeditor.cfm"
basePath="#Left(cgi.script_name, FindNoCase('_samples', cgi.script_name)-1)#"
instanceName="myEditor"
value='This is some sample text. You are using <a href="http://fckeditor.net/" target="_blank">FCKeditor</a>.'
width="100%"
height="200"
>
<cfoutput>
<br />
<input type="submit" value="Submit">
<br />
</form>
</cfoutput>
<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>
<cfsetting enablecfoutputonly="false">

View File

@ -0,0 +1,90 @@
<cfsetting enablecfoutputonly="true">
<!---
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 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/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: sample02_mx.cfm
* Sample page for ColdFusion MX.
*
* File Authors:
* Hendrik Kramer (hk@lwd.de)
* Wim Lemmens (didgiman@gmail.com)
--->
<!--- ::
* You must set the url path to the base directory for your media files (images, flash, files)
* The best position for this variable is in your Application.cfm file
*
* Possible variable scopes are:
* <cfset APPLICATION.userFilesPath = "/UserFiles/">
* OR:
* <cfset SERVER.userFilesPath = "/UserFiles/">
* OR:
* <cfset request.FCKeditor.userFilesPath = "/UserFiles/">
* OR:
* <cfset application.FCKeditor.userFilesPath = "/UserFiles/">
* OR:
* <cfset server.FCKeditor.userFilesPath = "/UserFiles/">
*
* Note #1: Do _not_ set the physical directory on your server, only a path relative to your current webroot
* Note #2: Directories will be automatically created
:: --->
<cfoutput>
<!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.
<hr>
<form method="POST" action="#cgi.script_name#">
</cfoutput>
<cfif listFirst( server.coldFusion.productVersion ) LT 6>
<cfoutput><br><em style="color: red;">This sample works only with a ColdFusion MX server and higher, because it uses some advantages of this version.</em></cfoutput>
<cfabort>
</cfif>
<cfscript>
// Calculate basepath for FCKeditor. It's in the folder right above _samples
basePath = Left(cgi.script_name, FindNoCase('_samples', cgi.script_name)-1);
fckEditor = createObject("component", "#basePath#fckeditor");
fckEditor.instanceName = "myEditor";
fckEditor.value = 'This is some sample text. You are using <a href="http://fckeditor.net/" target="_blank">FCKeditor</a>.';
fckEditor.basePath = basePath;
fckEditor.width = "100%";
fckEditor.height = 300;
fckEditor.create(); // create the editor.
</cfscript>
<cfoutput>
<br />
<input type="submit" value="Submit">
<hr />
</cfoutput>
<cfdump
var="#FORM#"
label="Dump of FORM Variables"
>
<cfoutput></form></body></html></cfoutput>
<cfsetting enablecfoutputonly="false">